SlideShare a Scribd company logo
Object Oriented Programming
CS8382
Course Overview
Unit 1 INTRODUCTION TO OOPAND JA
V
AFUNDAMENTALS
Unit 2 INHERITANCEAND INTERFACES
Unit 3 EXCEPTION HANDLINGAND I/O
Unit 4 MULTITHREADINGAND GENERIC PROGRAMMING
Unit 5 EVENT DRIVEN PROGRAMMING
What you need?
◆ A computer with java installed.
A decent internet connection for your
reference.
Text editor of your choice. IDE eclipse
preferred.
A book that help’s you when you are in
offline.
◆
◆
◆
◆
Object Oriented Programming
◆ It is a software design methodology.
It is a software programming model
that constructed based on objects.
It aims to implement real world entities
in programming.
◆
◆
OOP Languages
◆ The programming languages that follows the oops
principles is known as object oriented programming
languages.
Keep in mind every programming language is created
for a purpose.
Java is on of the general purpose
object oriented programming language.
Languages that follows oops principles other than java.
◆Simula, C++, Python … etc
◆
◆
◆
OBJECT
◆ Object is specific instance of a class.
It is often referred as a “Real world Entity”.
It lives in computer memory.
It has real values.
Objects of the same class need not be a same.
Shares similarity with attributes but differs
with values.
◆
◆
◆
◆
◆
Example of an Object
Properties Methods
Colour Start, Stop
Transmission Type Accelerate
Max Speed Change Transmission
CLASS
◆ It is template definitions of methods and variable.
Class is blue print of Object.
Class should be instantiated before using. It is
used to describe more than one object.
A class is an extensible program-code-template
for creating objects.
Classes are help us to create multiple objects
from them.
◆
◆
◆
◆
◆
Car Class
◆ List the differences between above
cars.
4 Principles of OOP
OOPS
Abstraction Encapsulation
Polymorphism
Inheritance
ABSTRACTION
◆ It is used to manage the complexity of
the program.
Hiding unwanted information from
users.
Hiding internal working mechanism
from user.
◆
◆
Abstract Car
◆ How much user must know about the
car for safe operations?
ENCAPSULATION
◆It is containment of code and data together.
◆It is used to protect the unnecessary
external access of code and datafrom other
source.
◆Parts of the program wrapped individually
without affecting each other.
Encapsulated Car
◆ Ex : Individual System’s in a typical car.
The Transmission System and Music System is
independent to each other.
◆Transmission System.
◆
◆
◆
◆ Engine Speed
Gear Ratio Change.
Clutch On/Off.
◆Music System.
◆
◆
◆ Play/Stop Album Change
Source Change [AUX/CD/USB]
INHERITANCE
◆Reuse the code.
◆Sharing the characteristics or properties
among the objects.
◆Parent and Child Relation
◆Support the Hierarchical classification
Inherited Car
◆ Think about similarities and
differences.
POLYMORPHISM
◆Taking more than one form.
◆it describes the concept that objects of
different types can be accessed through the
same interface.
◆Same object act’s differently according to
the situation.
Polymorphic Steer Wheel
[Car vs Aircraft]

More Related Content

Similar to OOPS(CS8392)_Unit-I_Notes.ppt (20)

PPTX
Bab satu
Aida Ramlan II
 
PDF
babsatu-140703233001-phpapp666666601.pdf
kashafishfaq21
 
PDF
Object Oriented Programming
𝗦𝗵𝗶𝘃𝗮𝗺 𝗝𝗼𝘀𝗵𝗶
 
PPT
Basics of object oriented programming interview tips for Java
Martin A
 
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
PPT
Introduction.ppt JAVA SCRIPT PROGRAMMING AND
Jifarnecho
 
PPTX
the Concept of Object-Oriented Programming
Aida Ramlan II
 
PPTX
object oriented programing lecture 1
Geophery sanga
 
PPTX
Object Oriented Programming Principles
Andrew Ferlitsch
 
PDF
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
PPT
Week1
Siya Agarwal
 
PPTX
Introduction to Object Oriented Programming
Moutaz Haddara
 
PPTX
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
PPTX
JAVA-PPT'S-complete-chrome.pptx
KunalYadav65140
 
PPTX
JAVA-PPT'S.pptx
RaazIndia
 
PDF
Oop concepts classes_objects
William Olivier
 
PDF
Object And Oriented Programing ( Oop ) Languages
Jessica Deakin
 
PPTX
Object Oriented Programming.pptx shiva
ry8424250
 
PPT
Object oriented vs. object based programming
Mohammad Kamrul Hasan
 
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
Bab satu
Aida Ramlan II
 
babsatu-140703233001-phpapp666666601.pdf
kashafishfaq21
 
Basics of object oriented programming interview tips for Java
Martin A
 
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
Introduction.ppt JAVA SCRIPT PROGRAMMING AND
Jifarnecho
 
the Concept of Object-Oriented Programming
Aida Ramlan II
 
object oriented programing lecture 1
Geophery sanga
 
Object Oriented Programming Principles
Andrew Ferlitsch
 
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
Introduction to Object Oriented Programming
Moutaz Haddara
 
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
JAVA-PPT'S-complete-chrome.pptx
KunalYadav65140
 
JAVA-PPT'S.pptx
RaazIndia
 
Oop concepts classes_objects
William Olivier
 
Object And Oriented Programing ( Oop ) Languages
Jessica Deakin
 
Object Oriented Programming.pptx shiva
ry8424250
 
Object oriented vs. object based programming
Mohammad Kamrul Hasan
 
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 

More from ganeshkarthy (15)

PPT
Java ppt-class_basic data types methods definitions
ganeshkarthy
 
PPT
Basic coding skills_python and its applications
ganeshkarthy
 
PPTX
Lecture-5-Linear Regression-Tutorials.PPTX
ganeshkarthy
 
PPTX
Lecture-5-Linear Regression-Tutorials.PPTX
ganeshkarthy
 
PPTX
Lecture-6-Linear Regression-Gradient Descent-Tutorials.PPTX
ganeshkarthy
 
PPTX
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
ganeshkarthy
 
PPT
C_Language_PS&PC_Notes.ppt
ganeshkarthy
 
PDF
CLOUD_COMPUTING_UNIT_2.pdf
ganeshkarthy
 
PDF
CLOUD_COMPUTING_UNIT_1.pdf
ganeshkarthy
 
PPTX
S16_Notes_CC.pptx
ganeshkarthy
 
PPTX
Asynchronous Frameworks.pptx
ganeshkarthy
 
PPT
Green computing PPT Notes.ppt
ganeshkarthy
 
PPT
Unit-II(STATIC UML DIAGRAMS).ppt
ganeshkarthy
 
DOCX
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.docx
ganeshkarthy
 
PDF
Unit-1_Notes(OOAD).pdf
ganeshkarthy
 
Java ppt-class_basic data types methods definitions
ganeshkarthy
 
Basic coding skills_python and its applications
ganeshkarthy
 
Lecture-5-Linear Regression-Tutorials.PPTX
ganeshkarthy
 
Lecture-5-Linear Regression-Tutorials.PPTX
ganeshkarthy
 
Lecture-6-Linear Regression-Gradient Descent-Tutorials.PPTX
ganeshkarthy
 
3Arrays, Declarations, Expressions, Statements, Symbolic constant.pptx
ganeshkarthy
 
C_Language_PS&PC_Notes.ppt
ganeshkarthy
 
CLOUD_COMPUTING_UNIT_2.pdf
ganeshkarthy
 
CLOUD_COMPUTING_UNIT_1.pdf
ganeshkarthy
 
S16_Notes_CC.pptx
ganeshkarthy
 
Asynchronous Frameworks.pptx
ganeshkarthy
 
Green computing PPT Notes.ppt
ganeshkarthy
 
Unit-II(STATIC UML DIAGRAMS).ppt
ganeshkarthy
 
UNIT-I(Unified_Process_and_Use Case_Diagrams)_OOAD.docx
ganeshkarthy
 
Unit-1_Notes(OOAD).pdf
ganeshkarthy
 
Ad

Recently uploaded (20)

PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PPTX
Destructive Tests corrosion engineer (1).pptx
zeidali3
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PPTX
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PPTX
Innowell Capability B0425 - Commercial Buildings.pptx
regobertroza
 
PDF
POWER PLANT ENGINEERING (R17A0326).pdf..
haneefachosa123
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
site survey architecture student B.arch.
sri02032006
 
PPTX
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
PPTX
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
PDF
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPTX
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
PDF
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
Destructive Tests corrosion engineer (1).pptx
zeidali3
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
Innowell Capability B0425 - Commercial Buildings.pptx
regobertroza
 
POWER PLANT ENGINEERING (R17A0326).pdf..
haneefachosa123
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
Thermal runway and thermal stability.pptx
godow93766
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
site survey architecture student B.arch.
sri02032006
 
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
Ad

OOPS(CS8392)_Unit-I_Notes.ppt

  • 2. Course Overview Unit 1 INTRODUCTION TO OOPAND JA V AFUNDAMENTALS Unit 2 INHERITANCEAND INTERFACES Unit 3 EXCEPTION HANDLINGAND I/O Unit 4 MULTITHREADINGAND GENERIC PROGRAMMING Unit 5 EVENT DRIVEN PROGRAMMING
  • 3. What you need? ◆ A computer with java installed. A decent internet connection for your reference. Text editor of your choice. IDE eclipse preferred. A book that help’s you when you are in offline. ◆ ◆ ◆ ◆
  • 4. Object Oriented Programming ◆ It is a software design methodology. It is a software programming model that constructed based on objects. It aims to implement real world entities in programming. ◆ ◆
  • 5. OOP Languages ◆ The programming languages that follows the oops principles is known as object oriented programming languages. Keep in mind every programming language is created for a purpose. Java is on of the general purpose object oriented programming language. Languages that follows oops principles other than java. ◆Simula, C++, Python … etc ◆ ◆ ◆
  • 6. OBJECT ◆ Object is specific instance of a class. It is often referred as a “Real world Entity”. It lives in computer memory. It has real values. Objects of the same class need not be a same. Shares similarity with attributes but differs with values. ◆ ◆ ◆ ◆ ◆
  • 7. Example of an Object Properties Methods Colour Start, Stop Transmission Type Accelerate Max Speed Change Transmission
  • 8. CLASS ◆ It is template definitions of methods and variable. Class is blue print of Object. Class should be instantiated before using. It is used to describe more than one object. A class is an extensible program-code-template for creating objects. Classes are help us to create multiple objects from them. ◆ ◆ ◆ ◆ ◆
  • 9. Car Class ◆ List the differences between above cars.
  • 10. 4 Principles of OOP OOPS Abstraction Encapsulation Polymorphism Inheritance
  • 11. ABSTRACTION ◆ It is used to manage the complexity of the program. Hiding unwanted information from users. Hiding internal working mechanism from user. ◆ ◆
  • 12. Abstract Car ◆ How much user must know about the car for safe operations?
  • 13. ENCAPSULATION ◆It is containment of code and data together. ◆It is used to protect the unnecessary external access of code and datafrom other source. ◆Parts of the program wrapped individually without affecting each other.
  • 14. Encapsulated Car ◆ Ex : Individual System’s in a typical car. The Transmission System and Music System is independent to each other. ◆Transmission System. ◆ ◆ ◆ ◆ Engine Speed Gear Ratio Change. Clutch On/Off. ◆Music System. ◆ ◆ ◆ Play/Stop Album Change Source Change [AUX/CD/USB]
  • 15. INHERITANCE ◆Reuse the code. ◆Sharing the characteristics or properties among the objects. ◆Parent and Child Relation ◆Support the Hierarchical classification
  • 16. Inherited Car ◆ Think about similarities and differences.
  • 17. POLYMORPHISM ◆Taking more than one form. ◆it describes the concept that objects of different types can be accessed through the same interface. ◆Same object act’s differently according to the situation.