C++ Structures and Classes - Explain the difference between structures and classes.

Explain the difference between structures and classes.

StructureClass
It is a value type.It is a reference type.
Its object is created on the stack memory.Its object is created on the heap memory.
It does not support inheritance.It supports inheritance.
The member variable of structure cannot be initialized directly.The member variable of class can be initialized directly.
It can have only parameterized constructor.It can have all the types of constructor and destructor.
C++ Container class - Explain container class and its types in C++.
C++ Container class - A container stores many entities and provide sequential or direct access to them. List, vector and strings are such containers...
C++ Storage Classes - Define storage classes in C++.
C++ Storage classes - Storage class defined for a variable determines the accessibility and longevity of the variable. The accessibility of the variable.
C++ Iterator class - Define an Iterator class in C++
C++ Iterator class - There are several different types of iterators:...
Post your comment
Discussion Board
java,c,c++,php,asp.net,html,javascript
send to my mail
akshata 10-30-2015