Upload
manish-kungwani
View
825
Download
2
Tags:
Embed Size (px)
DESCRIPTION
Object Oriented Design presentation.
Citation preview
1
Manish Kungwani
Object Oriented Principles
An introduction to the methods and principles …
2
The task of a good software …
3
Procedural approach (Algorithmic decomposition)
Object-oriented approach (Object-oriented decomposition)
Programming Methodologies
4
Algorithmic Decomposition
5
Object-oriented Decomposition
6
Object – Any tangible/intangible entity that has state, behavior, and identity.
The structure and behavior of similar objects are defined in their common class.
The terms instance and object are interchangeable.
Object Oriented Programming
7
Object
8
AbstractionEncapsulationInheritancePolymorphism
Principles of Object Oriented Programming
9
Abstraction
An abstraction denotes the essential characteristics of an object that distinguish it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the viewer.
10
Encapsulation
Encapsulation is the process of compartmentalizing the elements of an abstraction that constitute its structure and behavior; encapsulation serves to separate the contractual interface of an abstraction and its implementation.
11
Inheritance
Inheritance is a relationship among classes wherein one class shares the structure and/or behavior defined in one (single inheritance) or more (multiple inheritance) other classes.
12
Student -> {Name, Rollno, Date of birth}
Mechanical Engg. Student -> {Name, Rollno, Date of birth, Subject}
Mechanical Engg. Student IS A Student
Inheritance – An example
13
Polymorphism is a concept in type theory wherein a name may denote instances of many different classes as long as they are related by some common superclass. Any object denoted by this name is thus able to respond to some common set of operations in different ways.
Polymorphism
14
Strong TypingConcurrencyPersistence
Minor principles
15
Strong Typing
16
Concurrency
17
Persistence
18
Object-oriented programming is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an instance of some class, and whose classes are all members of a hierarchy of classes united via inheritance relationships.
Object Oriented Programming
19
Questions can be mailed at :[email protected]
My blog :http://manishkungwani.spaces.live.com
My screen casts can be found at : http://manishkungwani.spaces.live.com