top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are different properties provided by Object-oriented systems ?

+2 votes
484 views

Can you explain different properties of Object Oriented Systems? Whats difference between Association , Aggregation and Inheritance relationships?

posted Feb 27, 2014 by Iti Jindal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Object Oriented Systems have following properties:

  1. Provide support for complex data types
  2. Support inheritance
  3. Provides encapsulation of data
  4. Provides extensibility of existing data types and classes
  5. 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.

answer Feb 27, 2014 by Hiteshwar Thakur
...