What is the difference between Object oriented programming and Object based programming ?
152602-Sep-2019
Updated on 20-Sep-2020
Home / DeveloperSection / Interviews / What is the difference between Object oriented programming and Object based programming ?
Shrikant Mishra
02-Sep-2019Many of us have the misconception that JavaScript is an object-oriented language. Whereas, the truth is that JavaScript is an object-based language.
Object-Based Languages
Object-based languages support the usage of object and encapsulation.
They do not support inheritance or, polymorphism or, both.
Object-based languages do not support built-in objects.
Javascript, VB are examples of object bases languages.
OOP: follows Polymorphism, Inheritance, and Encapsulation(PIE).
Examples: Java, .Net so on. OOP is new comparing with OBP
Object-Oriented Languages
Object-Oriented Languages supports all the features of Oops including inheritance and polymorphism.
They support built-in objects.
C#, Java, VB. Net are examples of object oriented languages.
OBP: follows Polymorphism and Encapsulation.
Examples: Ada, Visual Basic (VB), and Fortran 90. OBP is old