OOPS(Object Oriented Programming Systems) In C++.
Types of Languages
2GL(Basic,Instruction programming to microprocessors/MC), 3GL(COBOL(= EQUALS TO),C++,C,PASCAL,Java,C#) 4GL(HTML,CSS,JSON)
Style Of Programming:
1. Procedureal Programming:
->SET of procedure calls.
->Exececutes statement by statement
-> ADD 2 numbers
ACCEPT A
ACCEPT B
RESULT EQUALS ADD A TO B
MULTIPLY A TO B
- It operates on same chunk of memory
2. Strctural Programming:
->Top to Bottom Approach
Understanding the problem and dividing into subsystems .Allow the subsystems to perform individually if required they will communicate between other subsystems.
- Modularization
OOPS
What is an OBJECT ?
Object is something which can exist in an independent state and which has tangible and non-tangible properties.
Why OBJECT ?
What an object contains?
1. Properties (data types ): à Data members
- To act on those properties (functions ,set of statements which will operate on data(properties ))--à Member functions
When ever communication between the object is required it is done,
Eradicate the unncecessary dependencies .
SYSTEM :
A system which performs some useful task .
Bottom To TOP Approach .
1. How much we can divide the large scale system (till it is the smallest but independent ).
You can talk between the objects.
Object is the smallest entity with meaningful info. That exists independently.
Basic Requirement for a language to be called as an OOP.
1. Independency: Encapsulation
2 . Security of the object: Abstraction
3. Reusability and extendibility: Inheritance
4. It makes the object dynamic: Polymorphism
Any language implements the above 4 rules is called as OOP.
C++ does not forces a programmer to code in oop way.