C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 21)
21.
Which of the following is correct about class and structure?
class can have member functions while structure cannot.
class data members are public by default while that of structure are private.
Pointer to structure or classes cannot be declared.
class data members are private by default while that of structure are public by default.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
23 comments Page 3 of 3.

Nitin Awchat said:   1 decade ago
Both ans A and B are correct

BADAL MAITY said:   8 years ago
The option A is correct.

Bhavin panchal said:   9 years ago
Option A also true.


Post your comments here:

Your comments will be displayed after verification.