OOPS Features
* The object oriented programming (OOP) is a programming model where Programs are organized around object and data rather than action and logic.
*OOP allow decomposition of a problem into a number of entities called Object and then builds data and function around these objects.
The Program is divided into number of small units called Object. The data and function are build around these objects.
The data of the objects can be accessed only by the functions associated with that object.
The functions of one object can access the functions of other object.
OOP has the following important features.
*OOP allow decomposition of a problem into a number of entities called Object and then builds data and function around these objects.
The Program is divided into number of small units called Object. The data and function are build around these objects.
The data of the objects can be accessed only by the functions associated with that object.
The functions of one object can access the functions of other object.
OOP has the following important features.
Class:
A class is the core of any modern Object Oriented Programming language such as C#.
In OOP languages it is must to create a class for representing data.
Class is a blueprint of an object that contains variables for storing data and functions to performing operations on these data.
Class will not occupy any memory space and hence it is only logical
representation of data.
To create a class, you simply use the keyword "class" followed by the class name:
class Employee
In OOP languages it is must to create a class for representing data.
Class is a blueprint of an object that contains variables for storing data and functions to performing operations on these data.
Class will not occupy any memory space and hence it is only logical
representation of data.
To create a class, you simply use the keyword "class" followed by the class name:
class Employee
{
}
nice blog
ReplyDelete