OOP-Object oriented programming - DotNet and DataBase

Follow us on Facebook

SQL Server Mountain View Mountain View Mountain View

Thursday, 2 August 2018

OOP-Object oriented programming

Object Oriented Programming (OOP) is a programming philosophy where programs are organized around objects and data rather than action and logic. 
  1. The code is divided into a number of small units called objects. The data and functions are built around these objects.
  2. The data of the objects can be accessed only by the functions associated with that object.
  3. The functions of one object can access the functions of another object.
  4. As discussed we divide the code into small units called objects and by creating instance we can access the  objects in outside the class on need base.
The following are the pillars of OOPs concepts

Encapsulation  is the process of treating related methods, properties, and other members as a single object.
Inheritance is the ability to access (inherits) the methods and properties from an existing class.
Polymorphism is the process of creating more methods with same name under the same class itself. But the signatures are different.
Abstraction is the process of hiding everything other than the relevant data about an object in order to simplify and increase efficiency.

No comments:

Post a comment


Get Updates On

Discussion updates

Straight Into Your INBOX!

Enter your email address to subscribe to this website and receive notifications of new posts by email.