DEV Community

KIRUBAGARAN .K
KIRUBAGARAN .K

Posted on

Oops(Object-Oriented Programming System)

Today I learned OOP in this session, and it was useful for gaining knowledge.

Object Oriented Programming is one of the most popular programming paradigms. It organizes code around objects rather than just functions and logic, making programs easier to understand, maintain, and scale.

Class
A class is a blueprint or template for creating objects.

Example: A class room class defines common features like objects, fan, light, bench and board .

Object
Dress myDess = new Dress(); → here myDress is an object.

Encapsulation
Protects data from unauthorized access using access modifiers (private, public)

Top comments (0)