1. | What are the four principles of object-oriented theory? |
|
2. | What is encapsulation? |
|
3. | What is the relationship between structures and classes? |
|
4. | What is the greatest advantage with object-oriented programming? |
|
5. | Why are classes frequently defined in header files? |
|
6. | What is inheritance? |
|
7. | Give a definition for a class. |
|
8. | What is the term for a function that is part of a class? |
|
9. | What is the term for a variable that is part of a class? |
|
Answers
1. | Abstraction, encapsulation, inheritance, and polymorphism |
2. | Placing the data and the functions that work on that data together |
3. | A class is essentially a structure with functions. |
4. | Code reusability |
5. | For two reasons: First, because of their complexity, and, second, to make them more reusable |
6. | When one class gets a copy of the public methods and variables of another class. |
7. | A template for creating objects |
8. | Method |
9. | Property |