What is the difference between a class and a structure in C++?
Answer / 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 |
What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }
What is the topic of the C++ FAQ list?
Define virtual constructor.
what are the decision making statements in C++? Explain if statement with an example?
Can you explain the term "resource acquisition is initialization?"
diff between pointer and reference in c++?
Can we overload operator in c++?
What are the differences between a struct and a class in C++?
What are the basics concepts of OOPS?
Can you use the function fprintf() to display the output on the screen?
Write a program to show polymorphism in C++?
What is meant by forward referencing and when should it be used?