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.
Why do we learn C++?
- C++ programming language is used to develop games, desktop apps, operating systems, browsers, and so on because of its performance.
- After learning C++, it will be much easier to learn other programming languages like Java, Python, Javascript, etc.
- C++ helps you to understand the internal architecture of a computer, how computer stores data and retrieves information.
Structure of C++
| Header file declaration section |
| Global declaration section |
| Class declaration and method definition section |
| Main function |
| Method definition section |
Features of OOPs.
- Aggregation
- Association
- Generalization
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
}

0 Comments