2024年6月6日发(作者:)
1. What is Object?
2. What is Polymorphism? How to implement polymorphism?
3. What is Dynamic Binding and Static Binding?
4. What is OOP?
5. What are important features of OOP? Why OOP are better?
6. What is Class?
7. Difference between class and object.
8. What is enum? What is enum's limitation?
9. What are interface and abstract class?
10. How would you choose between an abstract class and interface?
11. What are
struct
and
union
?
12. What is the difference between a struct and a class in C++?
13. Can struct be derived from Class?
14. What is a constructor, destructor, default constructor, copy constructor?
15. What is the purpose of a constructor/destructor?
16. What is the meaning of the “explicit” keyword for constructors?
17. How to disable the default functions (like default constructor, default
destructor …) in a class?
18. What is (default) copy constructor? When should a custom copy
constructor be defined for a class and why?
19. What are differences between copy constructor and assignment?
20. What is Friend?
21. What is inheritance?
22. How many inheritance mechanisms?
23. What is virtual inheritance?
24. What is a virtual memory, why do we use? Advantage?
25. What is virtual method?
What are the consequences of using a virtual method?
发布评论