1 / 8

Object Oriented Programming (OOPs) Concept in Java

In this presentation, I discussed the object-oriented features of Java. As the name suggests, Object-Oriented Programming or OOPs refers to languages that use objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism, etc in programming.

jjgupta915
Download Presentation

Object Oriented Programming (OOPs) Concept in Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Object Oriented Programming (OOPs) Concept in Java

  2. Definition of OOP Concepts in Java OOP concepts in Java are the main ideas behind Java’s Object Oriented Programming. They are an abstraction, encapsulation, inheritance, and polymorphism. Grasping them is key to understanding how Java works. Basically, Java OOP concepts let us create working methods and variables, then re-use all or part of them without compromising security.

  3. List of OOP Concepts in Java

  4. 1. Abstraction Abstraction means using simple things to represent complexity. In Java, abstraction means simple things like objects, classes, and variables represent more complex underlying code and data. This is important because it lets avoid repeating the same work multiple times.

  5. 2. Encapsulation • This is the practice of keeping fields within a class private, then providing access to them via public methods. • It’s a protective barrier that keeps the data and code safe within the class itself. • This way, we can re-use objects like code components or variables without allowing open access to the data system-wide.

  6. 3. Inheritance This is a special feature of Object Oriented Programming in Java. It lets programmers create new classes that share some of the attributes of existing classes. This lets us build on previous work without reinventing the wheel.

  7. 4. Polymorphism • This Java OOP concept lets programmers use the same word to mean different things in different contexts. • One form of polymorphism in Java is method overloading. That’s when different meanings are implied by the code itself. • The other form is method overriding. That’s when the different meanings are implied by the values of the supplied variables. • You can learn these java concepts from java online training.

  8. THANKS!!https://www.cetpainfotech.com/MOB NUMBER :  9212172602QUERY@CETPAINFOTECH.COM

More Related