The C++ questions I've been asked# Programming - 葵花宝典
t*d
1 楼
C++:
(Difference, advantage/disadvantage, and/or example for the following)
-Pass by value and pass by reference;
-struct in c and class in c++;
-struct and class in c++;
-Private and public inheritance
-Virtual inheritance
-Smart pointer(stack upwinding)
-Singleton design pattern(write a class)
-When a class has two vPtrTable?
-Member Methods which are automatically created by compiler for a class
-Deep copy and shallow copy
-How to design a class such that an object of that class can only be c
(Difference, advantage/disadvantage, and/or example for the following)
-Pass by value and pass by reference;
-struct in c and class in c++;
-struct and class in c++;
-Private and public inheritance
-Virtual inheritance
-Smart pointer(stack upwinding)
-Singleton design pattern(write a class)
-When a class has two vPtrTable?
-Member Methods which are automatically created by compiler for a class
-Deep copy and shallow copy
-How to design a class such that an object of that class can only be c