Question: Which of the following is the only technical difference between structures and classes in C++?

Options

A : Member function and data are by default protected in structures but private in classes.

B : Member function and data are by default private in structures but public in classes.

C : Member function and data are by default public in structures but private in classes.

D : Member function and data are by default public in structures but protected in classes.

Click to view Correct Answer

Previous || Next

Objects and Classes - General Questions more questions

Which of the following statements is correct when a class....

Which of the following statements is correct?

What does a class hierarchy depict?

Which of the following can be overloaded?

Which of the following means "The use of an object....

Which of the following statements is correct about the program....

Which of the following statements are correct for a static....

Which of the following type of class allows only one....

Which of the following is not a type of constructor?

Which of the following statements is correct?

Constructors and Destructors - General Questions more Online Exam Quiz

Unix - Part 1

Windows 2000 Server - Part 1

Windows NT - Part 1

Constructors and Destructors - General Questions

Functions - General Questions

OOPS Concepts - General Questions

References - General Questions

Arrays - General Questions