C++ Programming (3) Flashcards
What is a Template?
What is a Function Template? Syntax?
What is a Class Template? Syntax?
How can you create a template that take more than one type?
What are the different syntaxes when defining basic templates?
What is the standard template library?
What are the three kinds of things found in the STL? Examples?
STL Vector example:
What is overloading?
What is function overloading?
When does the program know what version of a function to use when using overloading?
What is operator overloading?
Example of overloading the stream operator:
What operators CAN and CANNOT be overloaded?
What is polymorphism? When we say polymorphism, what type are we talking about?
What does the ‘virtual’ keyword do? What is dynamic dispatching?
Where is ‘virtual’ specified? In derived classes, what happens to a virtual method?
What re pure virtual methods?
What do pure virtual methods lead to? What are they?
What is the ‘this’ pointer?
Example using the ‘this’ pointer:
What are static members? How can they be accessed?
What does it mean to declare a member variable as static? What object is it attached to? How are they declared and instantiated?
What are static member functions? Do they have a ‘this’ pointer?
What are some caveats to creating static members?
What are default parameters? How are they used? Syntax?
Once a default parameter is specified in a parameter list for a function, what must happen?
What is an issue with using default parameters?