SlideShare a Scribd company logo
JAVA 
By 
Shridhar B
Object 
Object is the basic unit of any programming 
language.Objects are identified by its unique name. 
An object are identified by its unique name. 
An object represents a particular instance of a class. 
Each instance of an object can hold its relevant data. 
An object is a collection of data members and 
associated member functions.
Classes are data types based on which objects are 
created. Objects with similar properties and methods 
are grouped together to form a class. 
Class represent a set of individual objects 
Example 1: 
consider a class of cars under which Santro Xing, 
Alto andWagonR represents individual objects. 
In this context each car object will have its own 
model, year of manufacturer,Colour,Top Speed, 
Engine power etc.which from properties of the car 
class and the associates functions actions that is
Object functions like start,move,stop from the 
methods of the car class. 
No memory is allocated when the class is created. 
Memory is allocated when the object is created. 
Example 2 : An architect will have blue prints for a 
house…those blue prints will be plan that explain 
exactly the what properties the house will have and 
how they all are laid out. However it is just a blue 
print you cannot live in it. 
Builders will look at the blue prints and use those 
blueprints to make a physical house.
They can use the same blue print to make as many 
houses they want……each house will have the same 
layout and properties. 
Each house can accommodate their own families 
…so one house might have smiths live in it….and 
one house have the Jones live in it. 
The blue print is the class….the house is the 
object…the people living in the house are data stored 
in the object’s properties.
Abstraction: Abstraction means showing essential 
features and hiding non-essential features to the user 
Example: yahoo mail…… 
When you provide the username and password and 
click on the submit button…It will show the 
Compose,Inbox,Outbox,Sent mails…..so when u 
click on compose it will open…but the user does not 
what are the internal operations the internal 
actions…that is non-essential things. 
TV remote…..Remote is an interface between user 
and tv..right which has buttons 0 to 10..on/of etc.
But we donot know circuits inside the remote. 
Users does not need to know…just he is using 
essential things like remote
Encapsulation means which binds the data and 
code(or) writing operations and methods in a single 
unit. 
For example : A car is having a multiple parts …Like 
steering ,wheels and engine…which binds together to 
form a single object that is car…So here multiple 
parts of cars encapsulates itself together to form a 
single object that is car. 
Encapsulation = Abstraction + data Hiding
Inheritance: Deriving a new class from the existing 
class is called inheritance. Derived class is getting all 
the features from the existing class and also 
incorporating some new features to the existing class. 
Class Address 
{ 
String name; 
String doorno; 
String streetname; 
}
Class latest address extends address{ 
String City; 
String State; 
String Country; 
}
Polymorphism: is the ability to take more than one 
form that an operation can exhibit different behavior 
at different instance depend upon the data passed in 
the operation. 
We behave differently in front of elders and friends. 
A single person is behaving differently at different 
time. 
A software engineer can perform different task at 
different instance of time depending on the task 
assigned to hime.He can do coding, testing, and 
analyzing ,designing depending on the task assign 
and the requirement.

More Related Content

PPT
OOPs concept and implementation
PPTX
Introduction to oop with c++
PDF
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
PPT
Teaching Object Oriented Programming Courses by Sandeep K Singh JIIT,Noida
PPTX
Introduction to Object Oriented Programming
PDF
Object Oriented Paradigm
PPTX
Object Oriented Concept
PPTX
Object oriented programming concept- Saurabh Upadhyay
OOPs concept and implementation
Introduction to oop with c++
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
Teaching Object Oriented Programming Courses by Sandeep K Singh JIIT,Noida
Introduction to Object Oriented Programming
Object Oriented Paradigm
Object Oriented Concept
Object oriented programming concept- Saurabh Upadhyay

What's hot (20)

PDF
Introduction to object oriented programming
PPTX
Fundamentals of OOP (Object Oriented Programming)
PDF
itft-Fundamentals of object–oriented programming in java
PDF
PPT
OOP programming
PPTX
Object Oriented Programming Languages
PPTX
Object Oriented Programming Principles
PPT
Object oriented programming (oop) cs304 power point slides lecture 01
PPTX
Classes And Objects
PPTX
Ruby OOP: Objects over Classes
PPTX
[OOP - Lec 01] Introduction to OOP
PPTX
Introduction to Object Oriented Programming
PPTX
Introduction to OOP concepts
PPTX
Lecture 1 oop
PDF
Ah java-ppt2
PPT
2 Object Oriented Programming
PPTX
General oops concepts
PPT
OOP Basics
Introduction to object oriented programming
Fundamentals of OOP (Object Oriented Programming)
itft-Fundamentals of object–oriented programming in java
OOP programming
Object Oriented Programming Languages
Object Oriented Programming Principles
Object oriented programming (oop) cs304 power point slides lecture 01
Classes And Objects
Ruby OOP: Objects over Classes
[OOP - Lec 01] Introduction to OOP
Introduction to Object Oriented Programming
Introduction to OOP concepts
Lecture 1 oop
Ah java-ppt2
2 Object Oriented Programming
General oops concepts
OOP Basics
Ad

Similar to Java Object-Oriented Programming Conecpts(Real-Time) Examples (20)

PPT
java
PPT
Java is an Object-Oriented Language
PDF
Programming Laboratory Unit 1.pdf
PDF
Oops concepts
PDF
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
PDF
Java Programming Paradigms Chapter 1
PPTX
UNIT I OOP AND JAVA FUNDAMENTALS CONSTRUCTOR
PPT
Md02 - Getting Started part-2
PPTX
object oriented programing lecture 1
PDF
Java chapter 3
PDF
Lecture 2 cst 205-281 oop
PPTX
JAVA-PPT'S-complete-chrome.pptx
PPTX
JAVA-PPT'S.pptx
PDF
JAVA-PPT'S.pdf
PDF
CS8392-OOPS-Printed-Notes-All-Units.pdf for students
PPTX
Java Programming - UNIT - 1, Basics OOPS, Differences
PDF
DOCX
Ooad notes
PPTX
Bab satu
PDF
babsatu-140703233001-phpapp666666601.pdf
java
Java is an Object-Oriented Language
Programming Laboratory Unit 1.pdf
Oops concepts
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
Java Programming Paradigms Chapter 1
UNIT I OOP AND JAVA FUNDAMENTALS CONSTRUCTOR
Md02 - Getting Started part-2
object oriented programing lecture 1
Java chapter 3
Lecture 2 cst 205-281 oop
JAVA-PPT'S-complete-chrome.pptx
JAVA-PPT'S.pptx
JAVA-PPT'S.pdf
CS8392-OOPS-Printed-Notes-All-Units.pdf for students
Java Programming - UNIT - 1, Basics OOPS, Differences
Ooad notes
Bab satu
babsatu-140703233001-phpapp666666601.pdf
Ad

More from Shridhar Ramesh (6)

PPTX
Core java
PPTX
Java(Access Modifiers)
PPTX
PPTX
PPTX
PPTX
Core java
Java(Access Modifiers)

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Lesson notes of climatology university.
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Structure & Organelles in detailed.
PPTX
Cell Types and Its function , kingdom of life
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Complications of Minimal Access Surgery at WLH
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Chinmaya Tiranga quiz Grand Finale.pdf
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Lesson notes of climatology university.
Classroom Observation Tools for Teachers
Cell Structure & Organelles in detailed.
Cell Types and Its function , kingdom of life
Supply Chain Operations Speaking Notes -ICLT Program
Complications of Minimal Access Surgery at WLH
Paper A Mock Exam 9_ Attempt review.pdf.
Microbial diseases, their pathogenesis and prophylaxis
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

Java Object-Oriented Programming Conecpts(Real-Time) Examples

  • 2. Object Object is the basic unit of any programming language.Objects are identified by its unique name. An object are identified by its unique name. An object represents a particular instance of a class. Each instance of an object can hold its relevant data. An object is a collection of data members and associated member functions.
  • 3. Classes are data types based on which objects are created. Objects with similar properties and methods are grouped together to form a class. Class represent a set of individual objects Example 1: consider a class of cars under which Santro Xing, Alto andWagonR represents individual objects. In this context each car object will have its own model, year of manufacturer,Colour,Top Speed, Engine power etc.which from properties of the car class and the associates functions actions that is
  • 4. Object functions like start,move,stop from the methods of the car class. No memory is allocated when the class is created. Memory is allocated when the object is created. Example 2 : An architect will have blue prints for a house…those blue prints will be plan that explain exactly the what properties the house will have and how they all are laid out. However it is just a blue print you cannot live in it. Builders will look at the blue prints and use those blueprints to make a physical house.
  • 5. They can use the same blue print to make as many houses they want……each house will have the same layout and properties. Each house can accommodate their own families …so one house might have smiths live in it….and one house have the Jones live in it. The blue print is the class….the house is the object…the people living in the house are data stored in the object’s properties.
  • 6. Abstraction: Abstraction means showing essential features and hiding non-essential features to the user Example: yahoo mail…… When you provide the username and password and click on the submit button…It will show the Compose,Inbox,Outbox,Sent mails…..so when u click on compose it will open…but the user does not what are the internal operations the internal actions…that is non-essential things. TV remote…..Remote is an interface between user and tv..right which has buttons 0 to 10..on/of etc.
  • 7. But we donot know circuits inside the remote. Users does not need to know…just he is using essential things like remote
  • 8. Encapsulation means which binds the data and code(or) writing operations and methods in a single unit. For example : A car is having a multiple parts …Like steering ,wheels and engine…which binds together to form a single object that is car…So here multiple parts of cars encapsulates itself together to form a single object that is car. Encapsulation = Abstraction + data Hiding
  • 9. Inheritance: Deriving a new class from the existing class is called inheritance. Derived class is getting all the features from the existing class and also incorporating some new features to the existing class. Class Address { String name; String doorno; String streetname; }
  • 10. Class latest address extends address{ String City; String State; String Country; }
  • 11. Polymorphism: is the ability to take more than one form that an operation can exhibit different behavior at different instance depend upon the data passed in the operation. We behave differently in front of elders and friends. A single person is behaving differently at different time. A software engineer can perform different task at different instance of time depending on the task assigned to hime.He can do coding, testing, and analyzing ,designing depending on the task assign and the requirement.