Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between object oriented and object based concept?

user-image
Question added by Sajad Hussain , Sr Software Engineer ERP , Precision Industry
Date Posted: 2013/10/20

  • Object-oriented language - It supports all the features of OOPs.

                                                     Example: java is object oriented language.
  • Object-based language - It doesn't support all the features of OOPs like                                                           Polymorphism and Inheritance.

                                                                           Example: javascript is object based language.

Muhammad Majid Saleem
by Muhammad Majid Saleem , Senior PHP Developer / Project Manager , SwaamTech

In simple words

Object Oriented languages supports Inheritanc like: C#, C++, PHP

Where As

Object based languages do not support Inheritance like: Javascript

 

Fadi Alkhateeb
by Fadi Alkhateeb , Senior Front End Developer , NexTwo

According to Wikipedia: Object-based

 

In computer science, the term object-based has two different senses:

  1. A somehow limited version of object-oriented programming, where one or more of the following restrictions applies: (a) There is no implicit inheritance, (b) there is no polymorphism, (c) only a very reduced subset of the available values are objects (typically the GUI components).
  2. Prototype-based systems (that is, those based on "prototype" objects that are not instances of any class).

As for samples , all people who answered here gave you good samples for it.

Mohamed Zakarya
by Mohamed Zakarya , Training Manager , New Horizons Cairo

Object Oriented is the approach which is implemented in languages which support that the developers can create user-deffined classes and instantiate objects from these classes for example Java and C++, while the Object Based is the approach implemented in the languages which doesn't support that the developers create thier user-defined classes, but only can use the built-in objects supported by the language library itself like for example VBScript.

Iltaf Hussain
by Iltaf Hussain , Head of Development , Shy7lo.com

Object Oriented languages are those which has full support for OOPS, like classes, inheretance, ploymorphisam etc etc. You extenciate object of the class and then use that object to access properties and methods.  Such languages are C++, C#, java and PHP etc etc

 

While Object based languages have no such concpets. In such language, only the object is created and all methods and properties are created with it in the same file. It has no concepts of classes, inheritance and poymorphisam. Java script is an object based language.

 

 

More Questions Like This