Class Test Flashcards
What is Procedural Programming?
Structured, in sequence, function focused, type of programming.
What is Object Oriented Programming?
Flexible, divided into objects, more abstraction, type of programming.
Classes can do what? (3)
- Encapsulate data structures
- Define custom data types
- Inherit from other classes
Most Classes contain what? (4)
- Data members (variables specific to class)
- Function members (functions of class that define behaviour)
- Constructor Function
- Destructor Function
When does a Constructor function run?
When a class instance is created.
When does a Destructor function run?
When object of a class is destroyed.
What is a Object?
An instance of a class, each instance needs a name.
Objects can access functions and variables within the class.
What are the 3 Access Modifiers?
- Private (only accessible within same class)
- Public (accessible anywhere)
- Protected (only accessible within same class, and any that inherit it)
What is the Default Access Modifier?
Private.
What is Data Encapsulation?
Hiding internal state (all interaction through functions)
What is the Inheritance Hierarchy?
Subclasses inherit functionality from Parent classes.
What are Audio Streams?
Flow of audio data, typically broken up into buffers.
What is a Callback, give an example?
Audio Devices have quartz crystals used for timed call backs, this is used to process audio.
Processing Block is an example of this.
What does a Low Buffer result in? (2)
- Low latency
- High processing
What does a High Buffer result in? (2)
- High latency
- Low processing
What is a Buffer Dropout?
When the buffer empties faster than it can be refilled.
What type of system do Buffers use to input/output data?
FIFO
First In, First Out
What does “Call by Value” do?
Changes a copy of a value.
What does “Call by Reference” do?
Changes original value.
What are Subjects also known as?
Broadcasters.
What are Observers also known as?
Listeners.
What is the difference between a “Virtual Function” and a “Pure Virtual Function”?
Virtual functions CAN be overridden.
Pure Virtual functions MUST be overridden.
How to calculate Max Delay Time?
BufferSize / SampleRate * 1,000
How to calculate Min Delay Time?
1 / SampleRate * 1,000,000