Functions Stand Alone and Methods Are Members of A Class
Functions Stand Alone and Methods Are Members of A Class
A Class is static. All of the attributes of a class are fixed before, during, and after the execution of
a program. The attributes of a class don't change.
The class to which an object belongs is also (usually) static. If a particular object belongs to a certain class
at the time that it is created then it almost certainly will still belong to that class right up until the time
that it is destroyed.
An Object on the other hand has a limited lifespan. Objects are created and eventually destroyed. Also
during that lifetime, the attributes of the object may undergo significant change.
2. Instantiation
A class declaration is merely a template for what an object should look like. When you instantiate an
object, C++ follows the class declaration as if it were a blueprint for how to create an instance of that
object.
use pure for abstract class. Cannot instantiate. Used with polymorphism
5. class/static method
6. static/class initializer
7. constructor
8. destructor/finalizer
9. superclass or base class
10. subclass or derived class
11. inheritance
12. encapsulation
13. multiple inheritance (and give an example)
14. delegation/forwarding
15. composition/aggregation
16. abstract class
17. interface/protocol (and different from abstract class)
18. method overriding
19. method overloading (and difference from overriding)
20. polymorphism (without resorting to examples)
21. is-a versus has-a relationships (with examples)
22. method signatures (what's included in one)
23. method visibility (e.g. public/private/other)