What is the difference between Class and Structure?
Answer Posted / ravi kumar jain
The difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.The
difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain the static member function.
Which is not a valid keyword a) public b) protected c) guarded
What are the different types of comments allowed in c++?
what kind of projects are suitable for c and c++
In a function declaration what does extern means?
How does atoi function work?
Which is the best c++ software?
What is function overloading c++?
What is the need of a destructor? Explain with the help of an example.
What is difference between c++ and c ++ 14?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
Why is polymorphism useful?
Explain pass by value and pass by reference.
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?