object oriented programming mine normalized

19
1 Manish Kungwani Object Oriented Principles An introduction to the methods and principles …

Upload: manish-kungwani

Post on 16-Dec-2014

813 views

Category:

Technology


2 download

DESCRIPTION

Object Oriented Design presentation.

TRANSCRIPT

Page 1: Object oriented programming   mine normalized

1

Manish Kungwani

Object Oriented Principles

An introduction to the methods and principles …

Page 2: Object oriented programming   mine normalized

2

The task of a good software …

Page 3: Object oriented programming   mine normalized

3

Procedural approach (Algorithmic decomposition)

Object-oriented approach (Object-oriented decomposition)

Programming Methodologies

Page 4: Object oriented programming   mine normalized

4

Algorithmic Decomposition

Page 5: Object oriented programming   mine normalized

5

Object-oriented Decomposition

Page 6: Object oriented programming   mine normalized

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

Page 7: Object oriented programming   mine normalized

7

Object

Page 8: Object oriented programming   mine normalized

8

AbstractionEncapsulationInheritancePolymorphism

Principles of Object Oriented Programming

Page 9: Object oriented programming   mine normalized

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.

Page 10: Object oriented programming   mine normalized

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.

Page 11: Object oriented programming   mine normalized

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.

Page 12: Object oriented programming   mine normalized

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

Page 13: Object oriented programming   mine normalized

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

Page 14: Object oriented programming   mine normalized

14

Strong TypingConcurrencyPersistence

Minor principles

Page 15: Object oriented programming   mine normalized

15

Strong Typing

Page 16: Object oriented programming   mine normalized

16

Concurrency

Page 17: Object oriented programming   mine normalized

17

Persistence

Page 18: Object oriented programming   mine normalized

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

Page 19: Object oriented programming   mine normalized

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