Object Oriented Systems have following properties:
- Provide support for complex data types
- Support inheritance
- Provides encapsulation of data
- Provides extensibility of existing data types and classes
- Inheritance is the process of acquiring the behavior of the inherited class and having access to its properties, methods thereby reducing the total number of lines of code.
Aggregation is a part whole relationship. eg.A document comprises of pages. (aggregation of pages)
Association is a relationship between 1 or more instances of a class.
Object oriented system gives the facility of class,object,data-hiding, inheritance, abstraction, encapsulation etc..
Class :- its a collection of data members and member function
Object :- Real time entity
Inheritance :- One class acqire the property of another class.
Encapsulation :- A wrapping up of a data into a single unit
Abstraction :- gives only the needed data
Association means how one class is associated with the other one
Aggregation means suppose user want to give the answer of forum than it must be the forum question than and only than answer can be given.thus this kind of relationship is aggregation
Inheritance means the one class acquire the property of another class that is parent child relationship.