SlideShare a Scribd company logo
Welcome to
Ducat India
C A L L U S :
7 0 - 7 0 - 9 0 - 5 0 - 90
www.ducatinida.com
Language | IndustrialTraining |
Digital Marketing |Web
Technology |Testing+ | Database
| Networking | Mobile
Application | ERP | Graphic | Big
Data | Cloud Computing
Apply Now
Oops concept in Java
Object-Oriented Programming (OOP) uses “objects” to model realworld objects. Object- oriented Programming (OOP)
consist of some important concepts namely Encapsulation, Polymorphism, Inheritance and Abstraction. These features are
generally referred to as the OOPS concepts. OOPs
Object-Oriented Programming is a concept to design a program using object and classes.
An object in OOP has some state and behavior. In Java, the state is the set of values of an object’s variables at any
particular time and the behaviour of an object is implemented as methods. Class can be considered as the blueprint or a
template for an object and describes the properties and behavior of that object, but without any actual existence. An object
is a particular instance of a class which has actual existence and there can be many objects (or instances) for a class. Static
variables and methods are not purely object oriented because they are not specific to instances (objects) but common to all
instances.
Classes
Acting as blueprints of a Java program, classes are templates that describe the characteristics of an element or method. They
are generic elements in Java programming. They also help a programmer to understand the coding system of another
programmer, making its structure clear. Classes exist in the program as long as they desire, meaning they do not have a
lifespan.
The following is a list of possible class variables:
•Class
•A class is a variable that needs to be declared before it enters a class, which can be found within any class and outside any
method.
•Instance
•Instance is a variable that remains within a particular class but is outside a method. However, it is accessible from any other
way once declared.
•Local
•A local is a variable that is defined inside any method in the program and requires initial declaration and acknowledgement. It
is omitted after it has executed the command or function.
Objects
Java objects are elements that possess behaviours and states. When parts are defined, they come with their features that
further adds value to a program component without having to include an extensive element. These are what you call
instances of classes. Because of the behaviours and states of objects, methods are executed successfully. Furthermore, a
particular item is associated with a unique function or command so that it will adhere to specific instructions. In contrast
with a class, an object ceases to exist once the program has been executed.
One of the characteristics of object-oriented programming is organizing things and concepts. Three object relationships
define why elements should or should not be moved to another particular program component:
•Is-a Relationship – this means that a type of object is more specific than its fellows (number 1 is a number)
•Has-a relationship – this means that a variety of object contains or is associated with another object (given number 1 and
number 2: number 1 has a succeeding number, number 2)
•Uses-a relationship – this means that a type of object will be using another object as a program progresses (given number
1, number 2 and number 3:
number 1 uses a number 2 to arrive at the sum of number 3)
It is essential to know how to work around with classes and objects when programming using the Java language since
they are considered as the generic elements of the software. We also learned how they are organized and their existing
relationships with one another.
Thank You!!
Call us:
70-70-90-50-90
www.ducatinida.com

More Related Content

PPTX
Oops abap fundamental
biswajit2015
 
PPTX
Object oriented modeling
Pooja Dixit
 
PPTX
Classes objects in java
Madishetty Prathibha
 
PDF
Java Programming Paradigms Chapter 1
Sakthi Durai
 
PPTX
Java Chapter 04 - Writing Classes: part 1
DanWooster1
 
DOCX
Object oriented basics
vamshimahi
 
PPTX
Java Chapter 04 - Writing Classes: part 3
DanWooster1
 
PPTX
object oriented programming using c++
fasalsial1fasalsial1
 
Oops abap fundamental
biswajit2015
 
Object oriented modeling
Pooja Dixit
 
Classes objects in java
Madishetty Prathibha
 
Java Programming Paradigms Chapter 1
Sakthi Durai
 
Java Chapter 04 - Writing Classes: part 1
DanWooster1
 
Object oriented basics
vamshimahi
 
Java Chapter 04 - Writing Classes: part 3
DanWooster1
 
object oriented programming using c++
fasalsial1fasalsial1
 

What's hot (20)

PPTX
Object Oriented Software Development revision slide
fauza jali
 
PPSX
Java Object Oriented Programming
University of Potsdam
 
PPTX
[OOP - Lec 01] Introduction to OOP
Muhammad Hammad Waseem
 
PPTX
More oop in java
SAGARDAVE29
 
PPT
classes & objects introduction
Kumar
 
PDF
Abap Objects for BW
Luc Vanrobays
 
PPTX
Constructor in java
Madishetty Prathibha
 
PPTX
Presentation c
Kunal Sharma
 
PPT
Unit 3 Java
arnold 7490
 
PPTX
[OOP - Lec 06] Classes and Objects
Muhammad Hammad Waseem
 
PPTX
5- Overriding and Abstraction In Java
Ghadeer AlHasan
 
PPTX
Object oriented concepts with java
ishmecse13
 
ODP
Beginners Guide to Object Orientation in PHP
Rick Ogden
 
PPT
Object Oriented Programming In .Net
Greg Sohl
 
PPTX
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
PPTX
Object Oriented Programming Using C++
Muhammad Waqas
 
PPTX
2- Introduction to java II
Ghadeer AlHasan
 
PPT
Classes cpp intro thomson bayan college
ahmed hmed
 
PPT
Java oops and fundamentals
javaease
 
PPTX
General oop concepts
Avneesh Yadav
 
Object Oriented Software Development revision slide
fauza jali
 
Java Object Oriented Programming
University of Potsdam
 
[OOP - Lec 01] Introduction to OOP
Muhammad Hammad Waseem
 
More oop in java
SAGARDAVE29
 
classes & objects introduction
Kumar
 
Abap Objects for BW
Luc Vanrobays
 
Constructor in java
Madishetty Prathibha
 
Presentation c
Kunal Sharma
 
Unit 3 Java
arnold 7490
 
[OOP - Lec 06] Classes and Objects
Muhammad Hammad Waseem
 
5- Overriding and Abstraction In Java
Ghadeer AlHasan
 
Object oriented concepts with java
ishmecse13
 
Beginners Guide to Object Orientation in PHP
Rick Ogden
 
Object Oriented Programming In .Net
Greg Sohl
 
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
Object Oriented Programming Using C++
Muhammad Waqas
 
2- Introduction to java II
Ghadeer AlHasan
 
Classes cpp intro thomson bayan college
ahmed hmed
 
Java oops and fundamentals
javaease
 
General oop concepts
Avneesh Yadav
 
Ad

Similar to Oops concept in Java (20)

DOCX
javaopps concepts
Nikhil Agrawal
 
PDF
Lecture_1___Introduction_to_OOP.pdf.pdf
AngelaClarito1
 
PPTX
object oriented programming through java basics
Rohit Kumar
 
PPTX
Unit No 2 Objects and Classes.pptx
DrYogeshDeshmukh1
 
PDF
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
Sakthi Durai
 
DOCX
Object Oriented Programming All Unit Notes
BalamuruganV28
 
PPTX
Object oriented programming in java
Elizabeth alexander
 
PPTX
Android Training (Java Review)
Khaled Anaqwa
 
PPTX
Lecture 5.pptx
AshutoshTrivedi30
 
PPTX
UNIT I OOP AND JAVA FUNDAMENTALS CONSTRUCTOR
mohanrajm63
 
PPT
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
PDF
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
DOCX
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
PDF
CS8392-OOPS-Printed-Notes-All-Units.pdf for students
KaviShetty
 
PPTX
U1 JAVA.pptx
madan r
 
PPTX
Objects and Classes in JAVA introduction
Radhika R
 
PPTX
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
PDF
JAVA PPT -2 BY ADI.pdf
Prof. Dr. K. Adisesha
 
PPT
java
jent46
 
PPT
Java is an Object-Oriented Language
ale8819
 
javaopps concepts
Nikhil Agrawal
 
Lecture_1___Introduction_to_OOP.pdf.pdf
AngelaClarito1
 
object oriented programming through java basics
Rohit Kumar
 
Unit No 2 Objects and Classes.pptx
DrYogeshDeshmukh1
 
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
Sakthi Durai
 
Object Oriented Programming All Unit Notes
BalamuruganV28
 
Object oriented programming in java
Elizabeth alexander
 
Android Training (Java Review)
Khaled Anaqwa
 
Lecture 5.pptx
AshutoshTrivedi30
 
UNIT I OOP AND JAVA FUNDAMENTALS CONSTRUCTOR
mohanrajm63
 
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
 
CS8392-OOPS-Printed-Notes-All-Units.pdf for students
KaviShetty
 
U1 JAVA.pptx
madan r
 
Objects and Classes in JAVA introduction
Radhika R
 
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
JAVA PPT -2 BY ADI.pdf
Prof. Dr. K. Adisesha
 
java
jent46
 
Java is an Object-Oriented Language
ale8819
 
Ad

More from Ducat India (20)

PPTX
Join MCSA Server 2016 And 2019 Course In Noida
Ducat India
 
PPTX
Apply now for dot net training classes in Noida
Ducat India
 
PPTX
Apply now for linux training classes in noida
Ducat India
 
PPTX
Apply Now for DevOps Training Classes in Noida
Ducat India
 
PPTX
Apply Now for AutoCAD Training Course in Noida
Ducat India
 
PPTX
Amazon Elastic Load Balancing
Ducat India
 
PPTX
AWS Relation Database Services
Ducat India
 
PPTX
Microsoft Dynamics CRM – Web Resources
Ducat India
 
PPTX
Field Types
Ducat India
 
PPTX
Sprint in jira
Ducat India
 
PPTX
JIRA Versions
Ducat India
 
PPTX
Kanban Board in Jira
Ducat India
 
PPTX
Test Report Preparation
Ducat India
 
PPTX
What is Text Analysis?
Ducat India
 
PPTX
Data Science Using Scikit-Learn
Ducat India
 
PPTX
Struts 2 – Database Access
Ducat India
 
PPTX
Struts 2 – Interceptors
Ducat India
 
PPTX
Struts 2 – Architecture
Ducat India
 
PPTX
Hibernate 5 – merge() Example
Ducat India
 
PPTX
Hibernate Object States – Transient,Persistent and Detached
Ducat India
 
Join MCSA Server 2016 And 2019 Course In Noida
Ducat India
 
Apply now for dot net training classes in Noida
Ducat India
 
Apply now for linux training classes in noida
Ducat India
 
Apply Now for DevOps Training Classes in Noida
Ducat India
 
Apply Now for AutoCAD Training Course in Noida
Ducat India
 
Amazon Elastic Load Balancing
Ducat India
 
AWS Relation Database Services
Ducat India
 
Microsoft Dynamics CRM – Web Resources
Ducat India
 
Field Types
Ducat India
 
Sprint in jira
Ducat India
 
JIRA Versions
Ducat India
 
Kanban Board in Jira
Ducat India
 
Test Report Preparation
Ducat India
 
What is Text Analysis?
Ducat India
 
Data Science Using Scikit-Learn
Ducat India
 
Struts 2 – Database Access
Ducat India
 
Struts 2 – Interceptors
Ducat India
 
Struts 2 – Architecture
Ducat India
 
Hibernate 5 – merge() Example
Ducat India
 
Hibernate Object States – Transient,Persistent and Detached
Ducat India
 

Recently uploaded (20)

PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
Basics and rules of probability with real-life uses
ravatkaran694
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
Virus sequence retrieval from NCBI database
yamunaK13
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 

Oops concept in Java

  • 1. Welcome to Ducat India C A L L U S : 7 0 - 7 0 - 9 0 - 5 0 - 90 www.ducatinida.com Language | IndustrialTraining | Digital Marketing |Web Technology |Testing+ | Database | Networking | Mobile Application | ERP | Graphic | Big Data | Cloud Computing Apply Now
  • 2. Oops concept in Java Object-Oriented Programming (OOP) uses “objects” to model realworld objects. Object- oriented Programming (OOP) consist of some important concepts namely Encapsulation, Polymorphism, Inheritance and Abstraction. These features are generally referred to as the OOPS concepts. OOPs Object-Oriented Programming is a concept to design a program using object and classes. An object in OOP has some state and behavior. In Java, the state is the set of values of an object’s variables at any particular time and the behaviour of an object is implemented as methods. Class can be considered as the blueprint or a template for an object and describes the properties and behavior of that object, but without any actual existence. An object is a particular instance of a class which has actual existence and there can be many objects (or instances) for a class. Static variables and methods are not purely object oriented because they are not specific to instances (objects) but common to all instances.
  • 3. Classes Acting as blueprints of a Java program, classes are templates that describe the characteristics of an element or method. They are generic elements in Java programming. They also help a programmer to understand the coding system of another programmer, making its structure clear. Classes exist in the program as long as they desire, meaning they do not have a lifespan. The following is a list of possible class variables: •Class •A class is a variable that needs to be declared before it enters a class, which can be found within any class and outside any method. •Instance •Instance is a variable that remains within a particular class but is outside a method. However, it is accessible from any other way once declared. •Local •A local is a variable that is defined inside any method in the program and requires initial declaration and acknowledgement. It is omitted after it has executed the command or function.
  • 4. Objects Java objects are elements that possess behaviours and states. When parts are defined, they come with their features that further adds value to a program component without having to include an extensive element. These are what you call instances of classes. Because of the behaviours and states of objects, methods are executed successfully. Furthermore, a particular item is associated with a unique function or command so that it will adhere to specific instructions. In contrast with a class, an object ceases to exist once the program has been executed. One of the characteristics of object-oriented programming is organizing things and concepts. Three object relationships define why elements should or should not be moved to another particular program component: •Is-a Relationship – this means that a type of object is more specific than its fellows (number 1 is a number) •Has-a relationship – this means that a variety of object contains or is associated with another object (given number 1 and number 2: number 1 has a succeeding number, number 2) •Uses-a relationship – this means that a type of object will be using another object as a program progresses (given number 1, number 2 and number 3: number 1 uses a number 2 to arrive at the sum of number 3) It is essential to know how to work around with classes and objects when programming using the Java language since they are considered as the generic elements of the software. We also learned how they are organized and their existing relationships with one another.