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 are the various operations performed on stack?
Which software is best for programming?
Do class declarations end with a semicolon? Do class method definitions?
How many characters are recognized by ANSI C++?
What is the benefit of encapsulation?
Is c++ a float?
What is DlgProc?
How is new() different from malloc()?
Differentiate between structure and class in c++.
What is the type of 'this' pointer?
Can manipulators fall in love?
Difference between declaration and definition of a variable.
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Which software is used to run c++ program?
Explain some examples of operator overloading?