A programming model based on a series of computational steps
What is Procedural Programming?
Describes a thing
What is a Class?
Allows retrieval of an attribute
What is an Accessor/Getter method?
When can a linear search be used?
Anytime
After 1 Bubble iteration of the outer loop of 5 4 3 2 1
4 3 2 1 5
4 2 1 5 3
1 2 4 5 3
Selection Sort
A programming model based on things
What is Object-oriented programming?
An instantiation of a class
What is an Object?
Allows the assignment of an attribute
What is a Mutator/Setter method?
When can a binary search be used?
When the list is sorted
After 1 Selection iteration of the outer loop of 5 4 3 2 1
1 4 3 2 5
4 2 1 5 3
2 4 1 5 3
Insertion Sort
A function that calls itself
Some internal details are hidden from main().
What is Encapsulation?
Runs automatically when an object is instantiated
What is the Default Constructor?
2nd number examined in a linear search of 5 6 7 8 9 10
6
After 1 Insertion iteration of the outer loop of 5 4 3 2 1
4 5 3 2 1
4 2 1 5 3
2 1 4 3 5
Bubble Sort
What are default, parameterized, and copy?
A class derives attributes and methods from another class
What is Inheritance?
Automatically runs to initialize private data
What is a Parameterized Constructor?
First 2 nbrs examined in a binary search of 3 4 5 6 7 8 9
6, 4 or 6, 8
After 2 Bubble iterations of outer loop of 5 4 3 2 1
3 2 1 4 5
After 2 Selection iterations of the outer loop of 5 4 3 2 1
1 2 3 4 5
The implicitly-passed object pointer when a member function is called on an object
What is 'this'?
Determine which method of the same name to execute
What is Polymorphism?
Runs automatically when an object is destroyed
What is a Destructor?
After 2 Insertion iterations of the outer loop of 5 4 3 2 1
3 4 5 2 1