Friday, 17 June 2016

OBJECT ORIENTED PROGRAMMING



I know you have lots of confusion or have lots of question regarding OBJECT ORIENTED PROGRAMMING language...And you feel that it is difficult to understand ...
so don't worry i m here to help you....i will try to explain OBJECT ORIENTED PROGRAMMING in simple words.
First of all ... don't hesitate to read this topic...



DEFINITION OF OOPs



" OBJECT ORIENTED PROGRAMMING refers to a programming methodology based on objects, instead of just functions and procedures. These objects are organized into classes, which allow individual objects to be group together. Most modern programming languages including  C,C++, C#, JAVA ,PHP, etc are object-oriented languages. "



In Short - OBJECT ORIENTED PROGRAMMING  is described as under:

- It's Abbreviation of OOPs
- OOPs Stands for OBJECT ORIENTED PROGRAMMING System
- It is a kind of Model or Concept
- Used to define (wright) programs
- methodology (way to developing a program) based on objects  instead of just functions and      procedures.
- In these types of programming you have to make CLASS because without class you can't make  OBJECTs. OOPs is based on OBJECTS that is generated from the CLASS.
- It has some important features that we will be using during developing our code. Some are
    ○ Encapsulation
    ○ Abstraction
    ○ Polymorphism
    ○ Inheritance
- Examples of it - C ,C++ , C# , JAVA , PHP , SMALL TALK  etc.
-Objects is created from Classes. (also say that object is a instance of the class)




FEATURES and TERMS OF OOPs






Abstraction: The process of representing important features and hiding background details is known as Abstraction. It is also called Data Abstraction or Data Hiding.

*****

Class: A class is a group of common object. It is user defined data type. It Contains variables and functions. The class defines all the common properties of the different objects that belong to them.

                                                                             *****         

Object: It is the instance of a class. 

0r

Object: It is a Run time Entity having some specific characteristics and behaviour . It is a variable of class type.
 
                                                                              *****

Inheritance: It is a feature that represents the "IS A" relationship between different classes.

0r
Inheritance: Deriving properties from one class  into another class is know as Inheritance.

                                                                              *****

Encapsulation: Wrapping of a data and function in a single unit is called Encapsulation.

                                                                              *****

Information hiding: The process of hiding details of an object or function. Information hiding is a powerful programming technique because it reduces complexity.

                                                                              *****

Messaging: Message passing is a form of communication used in parallel programming and object-oriented programming.(basically objects are communicating with each other)

                                                                              *****

Polymorphism: "Poly means many and Morphism means form."
Therefore Polymorphism is defined as the ability for a message or data to be processed in more then one form.
It is also called overloading.
It is of two types-
1-Function/Method overloading
2- Operator overloading







1 comment:

Rajat kumar jha said...

Nice Explanation #somesh. I am always eager to read your valuable post.

WINDOWS SUBSYSTEM FOR LINUX

Microsoft partnered with Canonical (creator of Ubuntu) to bring Linux environment experience in Windows 10. Through Windows Subsystem F...