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 are signs of manipulation?
Difference between pass by value and pass by reference?
Which function should be used to free the memory allocated by calloc()?
What is the insertion operator and what does it do?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
What it is and how it might be called (2 methods).
What is the sequence of destruction of local objects?
How can you link a c++ program to c functions?
Why is c++ still popular?
What are static type checking?
What is size_type?
What does it mean to declare a member variable as static?
When should we use container classes instead of arrays?
What is general form of pure virtual function? Explain?
What is a singleton class c++?