Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Object Oriented Technologies


Published on

The semonar given at,
K.K. Wagh Polytechnic, Second Shift (Nashik)
on 06/08/2011.
Class: SY and TY IT Students.
Name: Tushar B Kute, SITRC Nashik.

Published in: Education, Technology
  • Be the first to comment

Object Oriented Technologies

  1. 1. Object Oriented Technologies<br />Tushar B Kute<br />Assistant Professor in I.T.<br />Sandip Institute of Technology & Research Centre, Nashik<br />
  2. 2. Programming Paradigms<br />Procedure Oriented <br />Object Oriented<br />
  3. 3. 3R<br />Readability<br />Reusability<br />Reliability<br />
  4. 4. Procedure Oriented Programming<br />Procedures / Functions are used to form a modular program.<br />For example:<br />C<br />Pascal<br />Cobol<br />
  5. 5. Example: C Program<br />#include<stdio.h><br />int main( )<br />{<br />. . . . . . <br />}<br />void display( )<br />{<br />. . . . . .<br />}<br />intaddme(int a, int b)<br />{<br />. . . . . .<br />}<br />
  6. 6. Object Oriented Techniques<br />ADT<br />Polymorphism<br />Inheritance<br />
  7. 7. Abstract Data Type<br />Denotes the essential characteristics of an object that distinguish it from all other kinds of things.<br />ADT = data representation + its operations<br />Information hiding<br />Encapsulation<br />
  8. 8. Abstract Data Type<br />state, implemented by attributes<br />behaviour, implemented by operation<br />identity<br />
  9. 9. Abstract Data Type<br />class<br />object<br />instance<br />encapsulation<br />method<br />message<br />protocol<br />
  10. 10. Abstract Data Type<br />Class A class is a blueprint for creating objects. It is like a data type in traditional language.<br />Instance An instance is a particular element of a class. It is like a variable in traditional language.<br />
  11. 11. Polymorphism <br />Monomorphismevery values & variables is interpreted to be of one and only one type.<br />Polymorphism some variables may have more than one type.<br />
  12. 12. Polymorphism <br />Binding<br />static or early bindingaddInt(x, y)addFloat(x, y)<br />dynamic or lateadd(x, y)<br />
  13. 13. Polymorphism <br />universal polymorphism1. parametric (ex) generic function2. inclusion (ex) subtyping, inheritance mechanism<br />ad hoc. polymorphism1. overloading (ex) +2. coercion (ex) 3 + 4.5<br />
  14. 14. Example:<br />int add (int a, int b)<br />float add (float a, int b)<br />float add (float a, float b)<br />int add (int a, int b, int c)<br />float add (int a, float b, int c)<br />
  15. 15. Inheritance <br />vehicle<br />land<br />vehicle<br />water<br />vehicle<br />air<br />vehicle<br />car<br />truck<br />canoe<br />submarine<br />jet<br />rocket<br />18-wheeler<br />pickup<br />
  16. 16. Inheritance <br />Kind-of<br />Part-of<br />
  17. 17. Inheritance <br />A room is a part of a house.A kitchen is a kind of room.<br />A boat is a part of a fleet.A cruiser is a kind of a boat.<br />A child is a part of a family.A son is a kind of a child.<br />A word is a part of a sentence.A noun is a kind of a word.<br />
  18. 18. Problem Solving using OOP<br />Behaviour of a system (otherwise the state of the system) is exposed through the change of some characteristics.<br />paint new color<br />Property name : surface-color<br />Property value ; green<br />Property name : surface-color<br />Property value ; red<br />The force that change surface-color is PAINT action<br />
  19. 19. Class <br />Class Describes an object, description includes properties (attributes) and methods the object can perform<br />CD_Drive {<br />boolean _latchState<br />boolean _contentState<br />openLatch()<br />closeLatch()<br /> insert()<br /> eject()<br />}<br />Object<br />Each object consume its own space (Identity)<br />Description about CD-Driver<br />
  20. 20. Abstraction <br />Class wraps necessary details of the object and expose few through interface<br />Interface or method is communication point.<br />Interface or method can be invoked on an object.<br />CD_Drivelg<br />CD_Drivesegate<br />lg.openLatch();<br />
  21. 21. Object Oriented Languages<br />Objects are supported.<br />Objects are organized into classes.<br />Classes are organized into hierarchies using inheritance.<br />An object communicates by sending messages to invoke the operations of other objects<br />Objects of varying types respond to the same message differently using polymorphism.<br />
  22. 22. Object Oriented Programming Languages <br />First object-oriented language, Simula at 1967.<br />Proved by Smalltalk at 1976. <br />C++, Effiel, Common Lisp, Object-Pascal, ... appeared at late 1970s. <br />Object-oriented programming environments matured at 1980s. <br />User interface (1980s) : WIMP, Dynabook, Apple Lisa and Macintosh, Window systems..<br />
  23. 23. Object Oriented Programming Languages <br />Java appeared at 1995<br />C# by Microsoft at 2001<br />
  24. 24. Object Oriented Languages<br />Ada<br />CLU<br />C++<br />Modula-2<br />Objective-C<br />Smalltalk<br />CLOS (Lisp)<br />Java <br />C#<br />
  25. 25. Object Oriented Languages<br />C++<br />AT&Tdesigned by BjarneStroustrup<br />ANSI-C compatible<br />OOP <br />
  26. 26. Object Oriented Languages<br />JAVA<br />Designed at SUNby James Gosling and team<br />C/C++syntax compatible<br />True OOP<br />ByteCode<br />JVM<br />
  27. 27. Industrial Importance of OOT<br />Java <br />J2SE<br />J2EE<br />J2ME<br />Microsoft Visual<br />PHP<br />
  28. 28. Market Share in I.T.<br />62 percent technologies are based on Java<br />22 percent are on .net<br />16 percent are on others… <br />
  29. 29. Thank You<br /><br />