Contact Us || Privacy Policy || About Us |
|
OOPs Concepts in JavaOOPs means Object Oriented Programming concepts. OOPs is a Programming methodology it providing some concepts for software development and maintenance. OOPs Concepts List in Java
![]() 1) ObjectObject is real life entities that has state, behavior and identity is known as an object.
Example : Dog ![]() 2) ClassClass is blue print of an object that means It represents the set of properties or methods. 3) InheritanceIn Inheritance one object acquires all the properties and behaviors of a parent object, it is known as inheritance. Another Way you can say, one class is allow to inherit the fields and methods of another class. Note :- The parent class is called the base class or super class. The child class that extends the base class is called the derived class or sub class or child class. Syntax: Next Chapter More Details ........4) PolymorphismPolymorphism is an OOPs Concepts that allows to perform a single action in different ways. that is called Polymorphism. ![]() This figure show that a single function name can be used to handle the different numbers and different types of arguments. Types of Polymorphism
5) AbstractionAbstraction is a process hide the internal details and showing functionality is known as abstraction. In another way you can say, where you show only "relevant" data and "hide" unnecessary details of an object from the user. Example 1:- Phone call, we don't know the internal processing. Example 2:- Program code Next Chapter More Details ........6) EncapsulationEncapsulation is defined as the wrapping up of data under a single unit. Example : Tablet ![]()
Next TopicJava Naming Conventions
|