Oops

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1. What is object oriented?

Superficially the term object oriented means that we organize software as a collection of
discreet objects that incorporate both data structure and behaviour.

2. Characterstics of objects
Identity- Identity means that data is quantized into discreet distinguishabe quantities called
objects.
Classification-Objects with same data structure(attributes) and behaviour(operations) are
grouped into a class.
Polymorphism-Same operation may behave differently on different classes.
Inheritance-Sharing of attributes and operations among classes based on a hierarchical
relationship. A class can be defined broadly and van then be refined into successively finer
classes.

3. Object oriented themes


Abstraction-Abstraction consists of focussing on the essential, inherent aspects of an entity and
ignoring its accidental properties. In system development this means focussing on what an
object is and does , before deciding how it should be implemented. Use of abstraction preserves
the freedom to make decisions as long as possible by avoiding premature commitments to
details.
Encapsulation-Encapsulation(also information hiding)consists of separating the external aspects
of an object, which are accesible to other objects, from the internal implementation details of
the object, which are hidden from other objects. Encapsulation prevents a program from
becoming so interdependant tha a small change has massive effects.

4. Types of Inheritance
Singl e Inheritance
Multiple Inheritance
Multilevel Inheritance

Implementation Inheritance
Interface Inheritance

You might also like