0% found this document useful (0 votes)
132 views4 pages

OOP Notes

Object Oriented Concepts involve classes and objects, data abstraction, encapsulation, inheritance, and polymorphism. A class is a logical entity that describes the basic idea or blueprint, while an object is the physical implementation or instance. Classes contain attributes, methods, and reactions. Data abstraction hides complexity, while encapsulation combines data and methods. Inheritance creates relationships between parent and child classes. Polymorphism allows multiple forms through method overloading and overriding.

Uploaded by

Udit Bansal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views4 pages

OOP Notes

Object Oriented Concepts involve classes and objects, data abstraction, encapsulation, inheritance, and polymorphism. A class is a logical entity that describes the basic idea or blueprint, while an object is the physical implementation or instance. Classes contain attributes, methods, and reactions. Data abstraction hides complexity, while encapsulation combines data and methods. Inheritance creates relationships between parent and child classes. Polymorphism allows multiple forms through method overloading and overriding.

Uploaded by

Udit Bansal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Object Oriented Concepts :

--> Class & Object


--> Data Abstraction
--> Data Encapsulation
--> (Data)Inheritance
--> Polymorphism

--> Class & Object


What is Class : Entity
--> Basic Idea
--> Specification
--> Only Once
--> Logical

What is Object :
--> Implementation of Basic Idea
--> Instance
--> Mulitple time
--> Physical

eg. house(Object) ---> Map(Class)

--> Attributes/Property/Data Member (Variable)


--> Action/Member Method/Function(Code Blocks)
--> Reaction/Event ----> (Java Maintain)

example :
Machine (Class)
--> Model, Price ,Brand (Data Member/Variable)
--> drive(), move(),transport()......(Member
Method/Function)
--> Data Abstraction (hide all kind of Complexcity)
only required things or info to out

eg. Open the Door.

--> Data Encapuslation ( capulate )


--> Attributes/Property
--> Action

Keywords: (Access Spicifier)


--> Public
--> Private
--> Protected
--> Default(Friendly)

--> (Data) Inheritance


--> Two Specification/Class

--> Parent/Super/Master/Base
--> Child/Sub/Transaction/Derrive

--> Single Inheritance (Java)


--> Multiple Inheritance
--> MulitLevel Inheritance (Java)
--> MultiPath Inheritance
--> Hirarchical Inheritance (Tree Format) (Java)
--> Hybrid/Mixed

--> Ploymorphizm (we have multiple form of single object )

--> Overloading (CompileTime/Early Binding)


--> Over-ridding (Runtime/Late Binding) ---> Required Inheritance

--> Data Hiding


--> Exception Handling

===================================================================================
=========

Object Oriented Concpet (OOP)

--> Classes & Objects


--> What is Class?
--> Description/Basic Idea/Entity
--> Logical
--> It only describe once

--> What is Object?


--> Instance/Implementation
--> Physical
--> It can be Mulitple
Class Basic Parts :
--> Attributes/Properties (Data Member/Instance Variable)
--> Actions/Operations (Member Methods)
--> Reactions (Event) --> Handled By Java
eg. Car
--> Data Member(brand, price, color)
--> Member Methods (Drive(), Move())
--> Data Abstraction
--> Hiding All kind of Complexcity
eg. Open the Door(Object).

--> Data Encapsulation


--> Capsulate : Capsule : Combine something
--> Combining Data Member + Member Methods together
--> public
--> private
--> protected
--> default/friend
--> (Data) Inheritance
--> Containership (Loose Coupled)
--> Relationship (Tight Coupled)
--> Parent/Super/Base/Master Class
--> Child/Sub/Derrive/Transaction Class

--> Inheritance Types :


**> Single Inheritance
--> Multiple Inheritance
**> MultiLevel Inheritance
--> MultiPath Inheritance
**> Hierarchical Inheritance (tree)
--> Hybrid/Mixed
--> Polymorphism
Poly(Multiple) + Morph(form)

--> Overloading / Early/Compile Time Binding


--> Function/Methods
--> Operator(does not support by java)
--> Over-riding(Inheritance Required) Late /Dynamic Binding

===================================================================================
========

Object Oriented Concept (OOP)


--> Classes & Objects
--> What is Class?
--> Description/Basic Idea/Entity/Blueprint
--> Logical
--> Only Once
eg. UIT Map
--> What is Object?
--> Instance/ Implementation
--> Physical
--> It can multiple

Class Parts :
--> Attributes/Properties (Data Member/Instance Variable)
--> Action (Member Methods/Functions)
--> Reaction (Event)--> Java handle

eg. Car
--> Data Member ( model, brand, price, color .....)
--> Member Methods/Functions (Drive() , Move()......)

--> Data Abstraction


--> All kind of complexcity must be hidden
eg. Open The Door(Object)

--> Data Encapsulation


Capsulate : Combine

--> Public
--> Private
--> Protected
--> Default/Friendly (Current Package/folder)

--> (Data) Inheritance


--> Containership
--> Relationship
--> Parent/Super/Base/Master
--> Child/Sub/Derrive/Transaction

**> Single Inheritance


--> Multiple Inheritance
**> MultiLevel Inheritance
--> MultiPath Inheritance / Virtual
**> Hierarchical Inheritance (tree)
--> Hybrid/Mixed Inheritance
--> Polymorphism
Poly(Multiple) + Morph(form)

--> Overloading/ Early / Compiletime Binding


--> Function
--> Operator (Does not support by Java )
--> Over-ridding(Inheritance Required) Late / Dynamic Binding

--> Messaging Passing


--> Data hiding
--> Exception Handling
--> Serialization
--> Multithreading

You might also like