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
PPTX
Std 12 computer chapter 6 object oriented concepts (part 1)
PPTX
Need of object oriented programming
PPT
2 Object Oriented Programming
PPT
Oops
PPT
Introduction to oop
PPTX
Introduction to Object Oriented Programming
PPTX
Object Oriented Concept
Ah java-ppt2
Std 12 computer chapter 6 object oriented concepts (part 1)
Need of object oriented programming
2 Object Oriented Programming
Oops
Introduction to oop
Introduction to Object Oriented Programming
Object Oriented Concept

What's hot (20)

PPTX
Fundamentals of OOP (Object Oriented Programming)
PPTX
Object Oriented Programming Principles
PPTX
Introduction to Object Oriented Programming
PDF
Introduction to object oriented programming
PPTX
SKILLWISE - OOPS CONCEPT
PPTX
Introduction to oop
PPTX
Object oriented programming
PPT
PDF
Introduction to oops concepts
PPTX
Oops concept in c++ unit 3 -topic 4
PPTX
Introduction to oop using java
PPTX
Lecture01 object oriented-programming
PPTX
PPTX
Object Oriented Programming
PPT
Object Oriented Programming Concepts
PPTX
Principles and advantages of oop ppt
PPTX
OOP Unit 1 - Foundation of Object- Oriented Programming
PPTX
the Concept of Object-Oriented Programming
Fundamentals of OOP (Object Oriented Programming)
Object Oriented Programming Principles
Introduction to Object Oriented Programming
Introduction to object oriented programming
SKILLWISE - OOPS CONCEPT
Introduction to oop
Object oriented programming
Introduction to oops concepts
Oops concept in c++ unit 3 -topic 4
Introduction to oop using java
Lecture01 object oriented-programming
Object Oriented Programming
Object Oriented Programming Concepts
Principles and advantages of oop ppt
OOP Unit 1 - Foundation of Object- Oriented Programming
the Concept of Object-Oriented Programming
Ad

Viewers also liked (18)

PDF
Untitled Presentation
DOCX
resume
DOCX
DOCX
Grammar
PDF
Presentation blade center foundation for cloud
PPT
How to uninstall constant fun from computers
PDF
牧羊少年奇幻之旅
PPTX
Coloring the Great Belt
PDF
Big Time Sensuality Bill
PPTX
Finanziamenti giovani e donne
PPT
RHBC 164: Faithful: Intense Times Require Intense Prayer
PDF
review 2014-2015
PPTX
Raj cv[1]
PDF
Becerra_Ernesto_Professional_Persona _Project_Presentation
PDF
íntegra Atimo Videomonitoramento Veicular
PDF
Presentation v cloud suite 5.1 – what’s new
PDF
Appoint Business Support & HR
PPT
Untitled Presentation
resume
Grammar
Presentation blade center foundation for cloud
How to uninstall constant fun from computers
牧羊少年奇幻之旅
Coloring the Great Belt
Big Time Sensuality Bill
Finanziamenti giovani e donne
RHBC 164: Faithful: Intense Times Require Intense Prayer
review 2014-2015
Raj cv[1]
Becerra_Ernesto_Professional_Persona _Project_Presentation
íntegra Atimo Videomonitoramento Veicular
Presentation v cloud suite 5.1 – what’s new
Appoint Business Support & HR
Ad

Similar to Oop ppt (20)

PPTX
Features of Object Oriented Programming.pptx
PPTX
Intro to object oriented programming.pptx
PDF
Oops concepts || Object Oriented Programming Concepts in Java
DOCX
Object Oriented Programming All Unit Notes
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
PPT
Basic Java Concept - Practical Oriented Methodologies
PDF
Oops concepts
PDF
L1-Introduction to OOPs concepts.pdf
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
PPTX
introduction of Object oriented programming
PDF
ITFT - Oops
PDF
lecture.in ooop object orented programmeg.pdf
PPTX
JAVA PROGRAMMINGD
PPTX
chapter 5 concepts of object oriented programming
PPTX
1669609053088_oops_final.pptx
Features of Object Oriented Programming.pptx
Intro to object oriented programming.pptx
Oops concepts || Object Oriented Programming Concepts in Java
Object Oriented Programming All Unit Notes
Unit 1- Basic concept of object-oriented-programming.ppt
Basic Java Concept - Practical Oriented Methodologies
Oops concepts
L1-Introduction to OOPs concepts.pdf
Share Unit 1- Basic concept of object-oriented-programming.ppt
introduction of Object oriented programming
ITFT - Oops
lecture.in ooop object orented programmeg.pdf
JAVA PROGRAMMINGD
chapter 5 concepts of object oriented programming
1669609053088_oops_final.pptx

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Structure & Organelles in detailed.
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
RMMM.pdf make it easy to upload and study
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
01-Introduction-to-Information-Management.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Types and Its function , kingdom of life
Abdominal Access Techniques with Prof. Dr. R K Mishra
2.FourierTransform-ShortQuestionswithAnswers.pdf
Pharma ospi slides which help in ospi learning
Cell Structure & Organelles in detailed.
PPH.pptx obstetrics and gynecology in nursing
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Supply Chain Operations Speaking Notes -ICLT Program
RMMM.pdf make it easy to upload and study
Microbial diseases, their pathogenesis and prophylaxis
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
01-Introduction-to-Information-Management.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
TR - Agricultural Crops Production NC III.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Renaissance Architecture: A Journey from Faith to Humanism
O7-L3 Supply Chain Operations - ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?

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 Shanibamanjara@gmail.com 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: info@baabtra.com IKK Road, East Hill, Kozhikode Kerala, India. Ph: + 91 – 495 30 63 624 NIT-TBI, NIT Campus, Kozhikode, Kerala, India.