Question: How structures and classes in C++ differ?

Options

A : In Structures, members are public by default whereas, in Classes, they are private by default

B : In Structures, members are private by default whereas, in Classes, they are public by default

C : Structures by default hide every member whereas classes do not

D : Structures cannot have private members whereas classes can have

Click to view Correct Answer

Previous || Next

Cplusplus Programming Oops Concept 1 more questions

A reaction that takes place in laboratory rather than in....

Which of the following don’t use matrices?

Which among the following is not correct about modifications of....

Which of the following is correct about static polymorphism?

How is the megger calibrated?

When is the steady inviscid flow hyperbolic?

Which of the statement is correct with regard to the....

Flow properties are not bounded by the boundary values __________

Where are the radioactive devices mostly kept?

Anaemia is reduction/increase _________

Chemical Engineering Basics - Part 1 more Online Exam Quiz

Cplusplus Programming Iterators

Cplusplus Programming Lambda Expressions

Cplusplus Programming More Containers

Cplusplus Programming Namespaces 2

Cplusplus Programming Objective

Cplusplus Programming Oops Concept 2

Cplusplus Programming Oops Concept 4

Cplusplus Programming Operator Overloading 1

Cplusplus Programming Operator Overloading 2

C Plus Plus Programming Pointer To Void