Objects oriented programing
The basic methodology in which we design
code using classes and objects
It is the process of through which
software are develops
The goal of object oriented
programming is to crate reliable, reusable and extendable system
In oop classes and
objects are created to make programming more secure and protected
Advantages of using oop
I.
It
provides data encapsulation
II.
It
also provides abstraction
III.
Reuseabily
of code
IV.
We
not need to write code again and again
V.
Make
code more readable and effective
An object is a state well defined
behavior and unique entity
As we create a member of class name
age we can access them by creating an object an access them
Classes
ü User defined data
types
ü Data structure
ü Basic unit of oop
ü Combination of
functions
Base class/parent
class/super class
Child classes/derived class/subclass
Parent
class
A class whose properties inherited by sub class called
base class
Child
class
A class that inherits the properties of another class
there are four major concepts in oop
chick link below to access these topic details
1. inheritance
2. Abstraction
3. Encapsulation
4. polymorphism
No comments:
Post a Comment