OOP paradigm with examples
OOP paradigm with examples
Object-Oriented Programming
Object oriented programming is a methodology or paradigm to design a program
using classes and objects. It simplifies the software development and
maintenance by providing some concepts defined below:
1. Class: Class is a user-defined data type which defines its properties and its
functions. Class is the only logical representation of the data. For example,
Human being is a class. The body parts of a human being are its properties,
and the class actions performed by the body parts are known as functions.
The class does not occupy any memory space till the time an object is
instantiated.