What is the difference between a class and a structure in C++?
Answer Posted / nashiinformaticssolutions
With the exception of member variables and methods' default accessibility setting, class and structure (or struct) are essentially the same in C++. They are configured as public in a structure and private in a class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the history of c++?
Explain what are the sizes and ranges of the basic c++ data types?
What is a character in c++?
How are virtual functions implemented in c++?
Name the operators that cannot be overloaded in C++?
What are the operators in c++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What is the use of data hiding?
What is the use of volatile variable?
Describe delete operator?
What is the use of object in c++?
Is it possible to have a recursive inline function in c++?
What are built-in functions? What is the syntax for the definition?
What is the difference between object-oriented programming and procedural programming?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero