0% found this document useful (0 votes)
5 views3 pages

OOP Java

The document outlines the principles of Object-Oriented Programming (OOP) in Java, including encapsulation, inheritance, and polymorphism. It explains that a class serves as a blueprint for creating objects, which are instances of that class, and discusses the role of constructors in initializing these objects. Additionally, it covers abstraction, which involves hiding implementation details while exposing functionality through abstract classes and interfaces.

Uploaded by

Varshitha Poloju
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

OOP Java

The document outlines the principles of Object-Oriented Programming (OOP) in Java, including encapsulation, inheritance, and polymorphism. It explains that a class serves as a blueprint for creating objects, which are instances of that class, and discusses the role of constructors in initializing these objects. Additionally, it covers abstraction, which involves hiding implementation details while exposing functionality through abstract classes and interfaces.

Uploaded by

Varshitha Poloju
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

OOP in Java

OOP Principles

Encapsulation: wrapping data and methods in a single unit.

Inheritance: acquiring properties of another class.

Polymorphism: one interface, multiple implementations.


Classes and Objects

Class is a blueprint; object is an instance of a class.

Constructors initialize objects.


Abstraction

Hiding implementation details and showing only functionality.

Achieved using abstract classes and interfaces.

You might also like