Question:Which of the following are true about class and struct in C++:
A A class can have destructor but a struct cannot
B A class can have inheritance but a struct cannot
C In a class all members are public by default, whereas in struct all members are private by default
D In a class all members are private by default, whereas in struct all members are public by default
+ AnswerD
+ Report