Friday, 14 November 2014

OOPS Concept

OOPS Concept

OOPS....

Opes is not a programming language it is just a way to manage your code and application
it is a concept not a language.

Class......

Class is a collection of data member and member function.

Object......

It is instance of class.

Abstraction.....

It is focus on what the object does instead of how it does ?
to represent the essential features without representing the back ground details.

It means putting all the variables and methods in a class that are necessary.

Encapsulation.....

Wrapping up a data member and member function into a single unit (like class)
is called encapsulation.
for ex..
it means like your bag in which you can keep your pen,book it means it is the property of encapsulation data member and function.

Inheritance.......

It means relationship between two or more class class is called inheritance.
when a class include the property in another class is known as inheritance.

Polimorphism......

It means one name in multiple form.
many form of the single unit is called the Polimorphism.
for ex.
A teacher behave students
a teacher behave his/her senior.

Generic......

It provide the type safety to your class at the compile time.
while creating the data structure you never specify the data type at the time of declaration.

Method Overloading.........

The method have same name but different signature.
at the compile time compiler should decide that which one will call.
A method can overload on basis of following properties.

1. Different number of parameter.
2. Same number of parameter but different type.
3. Same number of parameter and type but different order.

Method Overriding.......

It is able to change the behavior of the method.
the method have same name and same signature.

Delegates....

Delegates object hold the reference of the method it is like class that hod the reference and called when necessary.
It is possible that delegate holds the multiple object references is called multicast delegates.

Constructor.......

It is special method of the class which is call automatically when instance of class is created.

Interface.........

The interface has no implementation on it's own because it contains only definition of method without any method body.

No comments:

Post a Comment