9.28.2012

Object-Oriented vs Object-based Programming

Are you frustrated in searching Working Links through Search Engines ?


Difference between Object-Oriented Programming and Object-based Programming
S.No
Object-based Programming
Object-oriented Programming
1 What features it supports ?
Object-based programming language does not support all the features of OOPs like Polymorphism and Inheritance.
What features it supports ?
Object-oriented programming language supports all the features of OOPs.
1. Abstraction
2. Encapsulation
3.Inheritance
4.Polymorphism
2 Whether it has inbuilt object ?
Object-based language has in-built object like javascript has window object.
Whether it has inbuilt object ?
Object-oriented language does not has in-built object.
3 Examples:
Javascript, VB etc.
Examples:
C++, C#, Java etc.

Abstraction: Abstraction is a process of exposing essential features of an entity by hiding the other irrelevant details. Abstraction mainly reduces complexity and increases efficiency. An entity can have multiple abstractions.

Encapsulation: The ability of hiding object's internal implementation.

Inheritance: The ability of building a new class definition based on existing class definition.

Polymorphism: The ability of treating related objects the same way.

References:




No comments:

Post a Comment