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 does it mean to declare a member function as static?
Can a program run without main?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Name the operators that cannot be overloaded in C++?
Does c++ have a hash table?
Explain about Virtual Function in C++?
What is function overriding in c++?
Can a program run without main function?
What data encapsulation is in c++?
Which c++ operator cannot overload?
What is a modifier in c++?
Does a derived class inherit or doesn't inherit?
How can we read/write Structures from/to data files?
Mention the ways in which parameterized can be invoked.
What is a literal in c++?