What is the difference between Class and Structure?
Answer Posted / swetcha
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 ? | 797 Yes | 102 No |
Post New Answer View All Answers
What is name hiding in c++?
What is the difference between cin.read() and cin.getline()?
what is VOID?
Is java as fast as c++?
What is switch case in c++ syntax?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
Explain stack & heap objects?
What are the 2 main types of data structures?
Can char be a number c++?
What is meant by forward referencing and when should it be used?
Is c++ faster than c?
How new/delete differs from malloc()/free?
Define a constructor - what it is and how it might be called (2 methods)?
What is near, far and huge pointers? How many bytes are occupied by them?
What is setw manipulator in c++?