· .NET provides all languages with
inheritance and constructors features
· Virtual Object Model
· Whether to smarten up non-object
oriented languages or dump down OO languages
FEATURES OF OOP
There are four main features in oop.They are:
· Inheritance
· Polymorphism
· Encapsulation
· Abstraction
Inheritance
Inheritance is a relationship among classes, where in one class shares the structure or
behaviour defined in another class. This is called Single Inheritance. If a
class shares the structure or behaviour from multiple classes, then it is called
Multiple Inheritance. Inheritance defines “is-a” hierarchy among classes in
which one subclass inherits from one or more generalised superclasses.
Polymorphism
Polymorphism literally means taking more than one form. Polymorphism is a
characteristic of being able to assign a different behavior or value in a
subclass, to something that was declared in a parent class.
Encapsulation
Encapsulation is the process of compartmentalising the elements of an
abtraction that defines the structure and behaviour. Encapsulation helps to
separate the contractual interface of an abstraction and implementation.
Abstraction
Abstraction defines the essential characteristics of an object that
distinguish it from all other kinds of objects. Abstraction provides
crisply-defined conceptual boundaries relative to the perspective of the
viewer. Its the process of focussing on the essential characteristics of an
object. Abstraction is one of the fundamental elements of the object model.
No comments:
Post a Comment