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
How did c++ get its name?
Explain terminate() function?
Can recursive program be written in C++?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
Explain about vectors in c ++?
What do you mean by a template?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
What is the exit function in c++?
What are the advantages of prototyping?
What are pointer-to-members? Explain.
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
What is operators in c++?
What are the classes in c++?
What is object in c++ wikipedia?
How can an improvement in the quality of software be done by try/catch/throw?