Object Oriented Basic Concepts

Object Oriented Programming is an approach which defines a soloution to a problem in which objects are interacted with each other to give a programming soloution.

Premitive Type:
A Premitive type is a single piece of data. For example int, float , double and long are premitive Types. Premitive type store as a value not by reference.

Class Type:
A Class Type has multiple pieces of data as well as actions which are known as methods.For example String is a Class Type. Class Type store not as value but by reference.

Static Method:
A static method is that which is used without a calling object.Static methods are invoked using the class name instead of making an object.

Non Static Method:
A non-static method is that which is used with a calling object.We have to make an object of the class in which method is defined and we can call our non-static method with the help of this object.

Constructor:
Here we can define the constructor by giving example

Object a1 = new Object() ;
In the above line after the new , an constructor of object is created. 'new' is a operator and constructor usually has no return type.

Default Constructor:
The constructor which is automatically called and we can say it is called default. When no constructor is explicitly called then default constructor is generted.

Overloaded Constructor:
In overloaded constructor , parameters are included . Just as methods are overload similarly constructors are also overloaded.

Copy Constructor:
Copy Constructor simply extracts the arguments data and then pass to the overloaded constructor.

Array:
Array is data structure which is used to be collection of data that is all of same type

Sort:  

Hey Bro can you please tell me the full form of PHP?

Hypertext Preprocessor

Not every one can understand Object oriented concept concept its difficult.

Yes , it has some complexities because you have to deal objects with real world problems

Object Oriented Programming has great advantages over other programming styles.Once an Object is created, knowledge of its implementation is not necessary for its use.

In OOP , object interact with each other and main unit is object while in other languages e.g Procedural main unit is funciton