Solutions Touch
← Back to all blogs

March 14, 2020

Starting OOP with CPP

By Akshay Bondar

Starting OOP with CPP

C++ Programming,Source code is written by the user forwarded to the compiler after that compiler does the processing on source code and generates Object Code.

Execution Structure 

cpp_flow_of_execution

Source code is written by the user forwarded to the compiler after that compiler does the processing on source code and generates Object Code. After that object code is linked with Libraries and it generates Executable file.

Executable_File

Programming Structure

First, we have to include Header file which contains C++function declarations and macro definitions to be shared between several source files which are helping the programmer to write efficient code.

Then we use a "namespace".It is a logical collection of variables and objects.

" cout " object represents the standard output. 

" cin " object represents the standard input.

"<<" is an insertion operator.

">>"  is an extraction operator.

 

Sample Structure of C++ Program

start_program

 

object oriented programming c++ examples oriented programming c++ lecture notes oops concepts in c++ with real time examples inheritance in c++ features of oop in c++ class in c++ c++ tutorial constructor in c++