Question: Which of the following is correct in C++?

Options

A : Classes cannot have protected data members

B : Structures can have member functions

C : Class members are public by default

D : Structure members are private by default

Click to view Correct Answer

Previous || Next

Cplusplus Programming Objective more questions

What are Engine Adaptors?

Which class has the lowest and the highest temperature?

Which of the following taxa are in their increasing order....

What type of class template is list?

What is mandatory for designing a new container?

Which classes can have vtable?

In Acquired immunity, complement system functions through___________

The choice of animals to be parents of each new....

The _____ or uniform price is determined by the proportion....

The three steps of data loss prevention are – Identify,....

Chemical Engineering Basics - Part 1 more Online Exam Quiz

Cplusplus Programming Inheritance 2

Cplusplus Programming Iterators

Cplusplus Programming Lambda Expressions

Cplusplus Programming More Containers

Cplusplus Programming Namespaces 2

Cplusplus Programming Oops Concept 1

Cplusplus Programming Oops Concept 2

Cplusplus Programming Oops Concept 4

Cplusplus Programming Operator Overloading 1

Cplusplus Programming Operator Overloading 2