What are the differences between a struct and a class in
C++?
Answer Posted / ajit
In structures by default the member variables considered as
public where as in classes by default data members are
considered as private.
Structures doesn't provide the concept data encapsulation
but classes provides it.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What kind of problems can be solved by a namespace?
What are the various compound assignment operators in c++?
What is the difference between global variables and local variable
What are vtable and vptr?
Is there any function that can skip certain number of characters present in the input stream?
What is const pointer and const reference?
Do you know the use of vtable?
What are c++ files?
What is an orthogonal base class in c++?
What is c++ try block?
What is an adaptor class or wrapper class in c++?
What is prototype in c++ with example?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Can you sort a set c++?
What are references in c++? What is a local reference?