Categories

Jun 11 in C++
Q: Difference between Class and Structure.

1 Answer

Jun 11
Structure: In C language, the structure is used to bundle different types of data types together. The variables inside a structure are called the members of the structure. These members are by default public and can be accessed by using the structure name followed by a dot operator and then the member name.

Class: Class is a successor of the Structure. C++ extends the structure definition to include the functions that operate on its members. By default all the members inside the class are private.

Object-Oriented Programming With C++

Classes, Constructors, Destructors
Click here to read more about C++
Click here to read more about Insurance

Related questions

Madanswer
Jun 9 in C++
Jun 15 in C++
Jun 15 in C++
...