Which of the following is correct about class and structure? - Study24x7
Social learning Network
22 Mar 2023 12:21 PM study24x7 study24x7

Which of the following is correct about class and structure?

A

class can have member functions while structure cannot.

B

class data members are public by default while that of structure are private.

C

Pointer to structure or classes cannot be declared.

D

class data members are private by default while that of structure are public by default.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles