Q. Which of the following is correct about class and structure?

  • (A) class data members are private by default while that of structure are public by default.
  • (B) Pointer to structure or classes cannot be declared.
  • (C) class data members are public by default while that of structure are private.
  • (D) class can have member functions while structure cannot.
πŸ’¬ Discuss
βœ… Correct Answer: (A) class data members are private by default while that of structure are public by default.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
201
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
94%
Success Rate