Object Oriented TechnologiesTushar B KuteAssistant Professor in I.T.Sandip Institute of Technology & Research Centre, Nashik
Programming ParadigmsProcedure Oriented Object Oriented
3RReadabilityReusabilityReliability
Procedure Oriented ProgrammingProcedures / Functions are used to form a modular program.For example:CPascalCobol
Example: C Program#include<stdio.h>int main( ){. . . . . . }void display( ){. . . . . .}intaddme(int a, int b){. . . . . .}
Object Oriented TechniquesADTPolymorphismInheritance
Abstract Data TypeDenotes the essential characteristics of an object that distinguish it from all other kinds of things.ADT = data representation + its operationsInformation hidingEncapsulation
Abstract Data Typestate, implemented by attributesbehaviour, implemented by operationidentity
Abstract Data Typeclassobjectinstanceencapsulationmethodmessageprotocol
Abstract Data TypeClass A class is a blueprint for creating objects. It is like a data type in traditional language.Instance An instance is a particular element of a class. It is like a variable in traditional language.
Polymorphism Monomorphismevery values & variables is interpreted to be of one and only one type.Polymorphism some variables may have more than one type.
Polymorphism Bindingstatic or early bindingaddInt(x, y)addFloat(x, y)dynamic or lateadd(x, y)
Polymorphism universal polymorphism1. parametric    (ex) generic function2. inclusion    (ex) subtyping, inheritance mechanismad hoc. polymorphism1. overloading    (ex) +2. coercion           (ex)  3 + 4.5
Example:int add (int a, int b)float add (float a, int b)float add (float a, float b)int add (int a, int b, int c)float add (int a, float b, int c)
Inheritance vehiclelandvehiclewatervehicleairvehiclecartruckcanoesubmarinejetrocket18-wheelerpickup
Inheritance Kind-ofPart-of
Inheritance A room is a part of a house.A kitchen is a kind of room.A boat is a part of a fleet.A cruiser is a kind of a boat.A child is a part of a family.A son is a kind of a child.A word is a part of a sentence.A noun is a kind of a word.
Problem Solving using OOPBehaviour of a system (otherwise the state of the system) is exposed through the change of some characteristics.paint new colorProperty name : surface-colorProperty value ; greenProperty name : surface-colorProperty value ; redThe force  that change surface-color is PAINT action
Class Class Describes an object, description includes properties (attributes) and methods the object can performCD_Drive {boolean _latchStateboolean _contentStateopenLatch()closeLatch()	insert()	eject()}ObjectEach object consume its own space (Identity)Description about CD-Driver
Abstraction Class wraps necessary details of the object and  expose few through interfaceInterface or method is communication point.Interface or method can be invoked on an object.CD_DrivelgCD_Drivesegatelg.openLatch();
Object Oriented LanguagesObjects are supported.Objects are organized into classes.Classes are organized into hierarchies using inheritance.An object communicates by sending messages to invoke the operations of other objectsObjects of varying types respond to the same message differently using polymorphism.
Object Oriented Programming Languages First object-oriented language, Simula at 1967.Proved by Smalltalk at 1976. C++, Effiel, Common Lisp, Object-Pascal, ... appeared at late 1970s. Object-oriented programming environments matured at 1980s. User interface (1980s) : WIMP, Dynabook, Apple Lisa and Macintosh, Window systems..
Object Oriented Programming Languages Java appeared at 1995C# by Microsoft at 2001
Object Oriented LanguagesAdaCLUC++Modula-2Objective-CSmalltalkCLOS (Lisp)Java C#
Object Oriented LanguagesC++AT&Tdesigned by BjarneStroustrupANSI-C compatibleOOP
Object Oriented LanguagesJAVADesigned at SUNby James Gosling and teamC/C++syntax compatibleTrue OOPByteCodeJVM
Industrial Importance of OOTJava J2SEJ2EEJ2MEMicrosoft Visual Studio.netPHP
Market Share in I.T.62 percent technologies are based on Java22 percent are on .net16 percent are on others…
Thank Youtbkute@gmail.com

Object Oriented Technologies