SlideShare a Scribd company logo
Oop ppt
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
OOP Concepts in Java
ShanibaM
Shanibamanjara@gmail.com
www.facebook.com/shanimanjara
twitter.com/username
in.linkedin.com/in/profilename
What is OOP?
 Object-Oriented Programming is a methodology or
paradigm to design a program using classes and
objects. It simplifies the software development and
maintenance by providing some concepts:
What Are Objects?
 Object means a real world entity Such as a person.
 Objects are the basic units of object-oriented programming.
 How do Software objects implement real-world objects?
-Use variables to implement states
-Use methods to implement behaviors
 An object is a software bundle of variables and related methods
 Object :- is the instance of a class
Class
• Class : -is the base design of objects
• which is a blueprint of an object
• No memory is allocated when a class is created.
• Memory is allocated only when an object is created.
Constructor
• Constructor in java is a special type of method that is used to
initialize the object.
• Java constructor is invoked at the time of object creation. It
constructs the values i.e. provides data for the object that is
why it is known as constructor.
Rules for creating java constructor
• There are basically two rules defined for the constructor.
• Constructor name must be same as its class name
• Constructor must have no explicit return type.
There are two types of constructors:
• Default constructor (no-arg constructor)
• Parameterized constructor
Example for Constructor
• Public class Shape
{
private int width;
private int height;
Shape(int height,int width)
{
this.width=width;
this.height=height;
}
Private int calculateArea()
{
return a*b;
}
}
OOP FEATURES
 Object
 Class
 Abstraction
 Encapsulation
 Polymorphism
 Inheritance
Data Abstraction
 Abstraction refers to the act of representing
essential features without including the
background details or explanations.
 Since the classes use the concept of data
abstraction , they are known as the abstract
data types.
Encapsulation
 The wrapping up of data and functions into a
single unit is known as Encapsulation.
 The data is not accessible to the outside world
and only those functions which are wrapped in
the class can access it.
 This insulation of the data from direct access by
the program is called Data hiding or information
hiding.
Polymorphism
• The ability to define a function in multiple forms is called
Polymorphism
• Polymorphism is the capability of a method to do different
things based on the object that it is acting upon.
• When one task is performed by different ways i.e. known as
polymorphism.
• For example: to draw something e.g. shape or rectangle etc.
• In java, we use method overloading and method overriding to
achieve polymorphism.
Inheritance
 When one object acquires all the properties and behaviors of
parent object i.e. known as inheritance. It provides code
reusability. It is used to achieve runtime polymorphism.
 This not only speeds up program development; it also ensures
an inherent validity to the defined subclass object
Example
Public class Shape
{
protected int width;
protected int height;
Int calculateArea()
{
Return x*y;
}
Public class dimensionshape extends Shape
{
Private int depth;
Int calculateVolume()
{
Return width*height*depth;
}
}
POP
In POP, program is divided into small
parts called functions.
POP follows Top Down approach
POP does not have any access
specifier
POP does not have any proper way for
hiding data so it is less secure.
Example of POP are : C, VB, FORTRAN,
Pascal.
OOP
In OOP, program is divided into parts
called objects.
OOP follows Bottom Up approach.
OOP has access specifiers named
Public, Private, Protected, etc.
OOP provides Data Hiding so
provides more security
Example of OOP are : C++, JAVA,
VB.NET, C#.NET.
End
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
IKK Road,
East Hill, Kozhikode
Kerala, India.
Ph: + 91 – 495 30 63 624
NIT-TBI,
NIT Campus, Kozhikode,
Kerala, India.

More Related Content

PDF
Ah java-ppt2
Haja Abdul Khader A
 
PPTX
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
PPTX
Need of object oriented programming
Amar Jukuntla
 
PPT
2 Object Oriented Programming
Praveen M Jigajinni
 
PPT
Oops
Prabhu R
 
PPT
Introduction to oop
Kumar
 
PPTX
Introduction to Object Oriented Programming
Moutaz Haddara
 
PPTX
Object Oriented Concept
D Nayanathara
 
Ah java-ppt2
Haja Abdul Khader A
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
Need of object oriented programming
Amar Jukuntla
 
2 Object Oriented Programming
Praveen M Jigajinni
 
Oops
Prabhu R
 
Introduction to oop
Kumar
 
Introduction to Object Oriented Programming
Moutaz Haddara
 
Object Oriented Concept
D Nayanathara
 

What's hot (20)

PPTX
Fundamentals of OOP (Object Oriented Programming)
MD Sulaiman
 
PPTX
Object Oriented Programming Principles
Andrew Ferlitsch
 
PPTX
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
PDF
Introduction to object oriented programming
Abzetdin Adamov
 
PPTX
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
PPTX
Introduction to oop
colleges
 
PPTX
Object oriented programming
Amit Soni (CTFL)
 
PPT
SEMINAR
priteshkhandelwal
 
PDF
Introduction to oops concepts
Nilesh Dalvi
 
PPTX
Oops concept in c++ unit 3 -topic 4
MOHIT TOMAR
 
PPTX
Introduction to oop using java
omeed
 
PPTX
Lecture01 object oriented-programming
Hariz Mustafa
 
PPTX
Object oriented programming
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Object Oriented Programming
Iqra khalil
 
PPT
Object Oriented Programming Concepts
thinkphp
 
PPTX
Principles and advantages of oop ppt
daxesh chauhan
 
PPTX
OOP Unit 1 - Foundation of Object- Oriented Programming
dkpawar
 
PPTX
the Concept of Object-Oriented Programming
Aida Ramlan II
 
Fundamentals of OOP (Object Oriented Programming)
MD Sulaiman
 
Object Oriented Programming Principles
Andrew Ferlitsch
 
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
Introduction to object oriented programming
Abzetdin Adamov
 
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
Introduction to oop
colleges
 
Object oriented programming
Amit Soni (CTFL)
 
Introduction to oops concepts
Nilesh Dalvi
 
Oops concept in c++ unit 3 -topic 4
MOHIT TOMAR
 
Introduction to oop using java
omeed
 
Lecture01 object oriented-programming
Hariz Mustafa
 
Object Oriented Programming
Iqra khalil
 
Object Oriented Programming Concepts
thinkphp
 
Principles and advantages of oop ppt
daxesh chauhan
 
OOP Unit 1 - Foundation of Object- Oriented Programming
dkpawar
 
the Concept of Object-Oriented Programming
Aida Ramlan II
 
Ad

Viewers also liked (18)

PDF
Untitled Presentation
amward2
 
DOCX
resume
Rohan Fraser
 
DOCX
BVV. RAVISHANKAR
BASAVA VEERA VENKATA RAVISHANKAR
 
DOCX
Grammar
Yessy Merino
 
PDF
Presentation blade center foundation for cloud
solarisyourep
 
PPT
How to uninstall constant fun from computers
haroNaroum
 
PDF
牧羊少年奇幻之旅
Ting-An Lee
 
PPTX
Coloring the Great Belt
Krispen Atkinson
 
PDF
Big Time Sensuality Bill
Lynora Lawless
 
PPTX
Finanziamenti giovani e donne
Maria Elena Manzione
 
PPT
RHBC 164: Faithful: Intense Times Require Intense Prayer
rhbc
 
PDF
review 2014-2015
April Johnson
 
PPTX
Raj cv[1]
Raj Mohan
 
PDF
Becerra_Ernesto_Professional_Persona _Project_Presentation
Ernesto Becerra
 
PDF
íntegra Atimo Videomonitoramento Veicular
INTEGRA ISBS
 
PDF
Presentation v cloud suite 5.1 – what’s new
solarisyourep
 
PDF
Appoint Business Support & HR
Emma Corfield
 
PPT
copd
chiberchima
 
Untitled Presentation
amward2
 
resume
Rohan Fraser
 
Grammar
Yessy Merino
 
Presentation blade center foundation for cloud
solarisyourep
 
How to uninstall constant fun from computers
haroNaroum
 
牧羊少年奇幻之旅
Ting-An Lee
 
Coloring the Great Belt
Krispen Atkinson
 
Big Time Sensuality Bill
Lynora Lawless
 
Finanziamenti giovani e donne
Maria Elena Manzione
 
RHBC 164: Faithful: Intense Times Require Intense Prayer
rhbc
 
review 2014-2015
April Johnson
 
Raj cv[1]
Raj Mohan
 
Becerra_Ernesto_Professional_Persona _Project_Presentation
Ernesto Becerra
 
íntegra Atimo Videomonitoramento Veicular
INTEGRA ISBS
 
Presentation v cloud suite 5.1 – what’s new
solarisyourep
 
Appoint Business Support & HR
Emma Corfield
 
Ad

Similar to Oop ppt (20)

PDF
oopm 2.pdf
jayeshsoni49
 
PPTX
Untitled presentation about object oriented.pptx
janetvidyaanancys
 
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
PPTX
c++.pptxwjwjsijsnsksomammaoansnksooskskk
mitivete
 
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPTX
Introduction to OOPs second year cse.pptx
solemanhldr
 
PDF
Object Oriented Programming Constructors & Destructors
anitashinde33
 
PPTX
ECAP444 - OBJECT ORIENTED PROGRAMMING USING C++.pptx
vmickey4522
 
PPTX
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
PPTX
Principles of OOPs.pptx
LakshyaChauhan21
 
PPTX
Php oop (1)
Sudip Simkhada
 
PPTX
Class and Objects in python programming.pptx
Rajtherock
 
PPTX
oop.pptx
KabitaParajuli3
 
PPTX
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
babasahebgaikwad8
 
PPTX
Classes, Inheritance ,Packages & Interfaces.pptx
DivyaKS18
 
PPTX
PHP OOP Lecture - 01.pptx
Atikur Rahman
 
oopm 2.pdf
jayeshsoni49
 
Untitled presentation about object oriented.pptx
janetvidyaanancys
 
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
c++.pptxwjwjsijsnsksomammaoansnksooskskk
mitivete
 
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Introduction to OOPs second year cse.pptx
solemanhldr
 
Object Oriented Programming Constructors & Destructors
anitashinde33
 
ECAP444 - OBJECT ORIENTED PROGRAMMING USING C++.pptx
vmickey4522
 
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
Principles of OOPs.pptx
LakshyaChauhan21
 
Php oop (1)
Sudip Simkhada
 
Class and Objects in python programming.pptx
Rajtherock
 
oop.pptx
KabitaParajuli3
 
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
babasahebgaikwad8
 
Classes, Inheritance ,Packages & Interfaces.pptx
DivyaKS18
 
PHP OOP Lecture - 01.pptx
Atikur Rahman
 

Recently uploaded (20)

DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 

Oop ppt

  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 3. OOP Concepts in Java ShanibaM [email protected] www.facebook.com/shanimanjara twitter.com/username in.linkedin.com/in/profilename
  • 4. What is OOP?  Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies the software development and maintenance by providing some concepts:
  • 5. What Are Objects?  Object means a real world entity Such as a person.  Objects are the basic units of object-oriented programming.  How do Software objects implement real-world objects? -Use variables to implement states -Use methods to implement behaviors  An object is a software bundle of variables and related methods  Object :- is the instance of a class
  • 6. Class • Class : -is the base design of objects • which is a blueprint of an object • No memory is allocated when a class is created. • Memory is allocated only when an object is created.
  • 7. Constructor • Constructor in java is a special type of method that is used to initialize the object. • Java constructor is invoked at the time of object creation. It constructs the values i.e. provides data for the object that is why it is known as constructor.
  • 8. Rules for creating java constructor • There are basically two rules defined for the constructor. • Constructor name must be same as its class name • Constructor must have no explicit return type. There are two types of constructors: • Default constructor (no-arg constructor) • Parameterized constructor
  • 9. Example for Constructor • Public class Shape { private int width; private int height; Shape(int height,int width) { this.width=width; this.height=height; } Private int calculateArea() { return a*b; } }
  • 10. OOP FEATURES  Object  Class  Abstraction  Encapsulation  Polymorphism  Inheritance
  • 11. Data Abstraction  Abstraction refers to the act of representing essential features without including the background details or explanations.  Since the classes use the concept of data abstraction , they are known as the abstract data types.
  • 12. Encapsulation  The wrapping up of data and functions into a single unit is known as Encapsulation.  The data is not accessible to the outside world and only those functions which are wrapped in the class can access it.  This insulation of the data from direct access by the program is called Data hiding or information hiding.
  • 13. Polymorphism • The ability to define a function in multiple forms is called Polymorphism • Polymorphism is the capability of a method to do different things based on the object that it is acting upon. • When one task is performed by different ways i.e. known as polymorphism. • For example: to draw something e.g. shape or rectangle etc. • In java, we use method overloading and method overriding to achieve polymorphism.
  • 14. Inheritance  When one object acquires all the properties and behaviors of parent object i.e. known as inheritance. It provides code reusability. It is used to achieve runtime polymorphism.  This not only speeds up program development; it also ensures an inherent validity to the defined subclass object
  • 15. Example Public class Shape { protected int width; protected int height; Int calculateArea() { Return x*y; } Public class dimensionshape extends Shape { Private int depth; Int calculateVolume() { Return width*height*depth; } }
  • 16. POP In POP, program is divided into small parts called functions. POP follows Top Down approach POP does not have any access specifier POP does not have any proper way for hiding data so it is less secure. Example of POP are : C, VB, FORTRAN, Pascal. OOP In OOP, program is divided into parts called objects. OOP follows Bottom Up approach. OOP has access specifiers named Public, Private, Protected, etc. OOP provides Data Hiding so provides more security Example of OOP are : C++, JAVA, VB.NET, C#.NET.
  • 17. End
  • 18. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com
  • 19. Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: [email protected] IKK Road, East Hill, Kozhikode Kerala, India. Ph: + 91 – 495 30 63 624 NIT-TBI, NIT Campus, Kozhikode, Kerala, India.