Full width home advertisement

Post Page Advertisement [Top]

Oops, Concepts in an easy way.




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.
to use of this concept we can manage our application.

Class......

Class is the blue print of object.
Class is a collection of data member(Int,string,double etc.) and member function.(Method)

Object......

It is instance of class.
An object is basically a block of memory that has been allocated and configured according to the blueprint.

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.
there are two types.
1.Run time
2.Compile time
Run time means method overriding
and compile time means method overloading.
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

Bottom Ad [Post Page]

| Designed by Colorlib