structure in c++

Structure in C++ -:  In the c++ programming language structure has four section . These section may be placed in separate code file and then complied independently or jointly. As like..

 

It is a common practice to organize a program into three separate files. The class declaration are placed in a header file and the definition of member function go into another file. This approach enable the programmer to separate the abstract specification of the interface from the implementation details.

Finally the main program that uses the class is placed in a third file which ” Includes” the previous two files as well as any other files required.

This approach is based on the concept of client server model. The class definition including the member function constitute the server that provides services to the main program known as client. the client use the server through the public interface of the class.

 

 

Leave a Comment