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 a memory leak c++?
Explain linked list using c++ with an example?
Difference between Abstraction and encapsulation in C++?
Describe the advantage of an external iterator.
Write a struct time where integer m, h, s are its members?
Describe Trees using C++ with an example.
Write a c program for binary addition of two 8 bit numbers.
Why do we need templates?
What is do..while loops structure?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What does new do in c++?
What does obj stand for?
What is the advantage of an external iterator.
What is the disadvantage of using a macro?
What is a hash function c++?