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
What's the "software peter principleā?
What do you mean by function overriding & function overloading in c++?
What is the insertion operator and what does it do?
How to declaring variables in c++?
What are the rules about using an underscore in a c++ identifier?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Why is main an int?
Write about the role of c++ in the tradeoff of safety vs. Usability?
Does c++ support exception handling?
What is purpose of new operator?
Write a c program for binary addition of two 8 bit numbers.
Is map sorted c++?
Explain the static storage classes in c++.
Explain how to initialize a const member data.
Is vector a class in c++?