Ad Code

Introduction of C++ Programming Language.

 

C++

What is C++?

·        C++ is a multi-paradigm programming language that supports Object-Oriented Programming (OOP).

·        C++ was developed by Danish computer scientist Bjarne Stroustrup at Bell Labs in 1983.

·        C++ is an extension of C Programming language.


Object-Oriented Approach

The approach of object-oriented is to focus on capturing the structure and behavior of information systems into small modules that combines both data and process. The main aim of Object-Oriented Design (OOD) is to improve the quality and productivity of system analysis and design by making it more usable.


Structure of C++



Header file declaration section

Global declaration section

Class declaration and method definition section

Main function

Method definition section


Features of OOPs.

1.     Encapsulation

2.     Abstraction

3.     Relationships

            Types of relationships

·        Aggregation

·        Association

·        Generalization

4.     Inheritance

5.     Polymorphism and Dynamic Binding


Elements of OOPs.

1.     Objects

2.     Attributes

3.     Behavior

4.     Class

5.     Methods

6.     Message


Let’s begins with a Simple Program

#include<iostream>                           // header file

int main( )                                            //main function

{

  cout<<”HELLO WORLD”;             // output statements

}

 

 

 

 

 

 

 

 

 

 

 

Post a Comment

0 Comments

Ad Code