+ 5

What is difference between object oriented programming language and object based programming language?

10th Dec 2016, 2:25 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
8 Respostas
+ 7
Object oriented programming languages follow all concepts belonging to OOP. ... Object-based language doesn't support all the features of OOPs like Polymorphism and Inheritance Object-based language has in-built object like SavaScript has window object. Object-based languages are JavaScript, VB etc.
10th Dec 2016, 5:44 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 3
In Object-based languages include basically any language that offers the built-in ability to easily create and use objects. There is one major criterion: Encapsulation. Example Visual Basic is an Object based   Programming Language  because you can use class and Object here but can not inherit one class from another class i.e. it does not support Inheritance. Also JavaScript. and In Object-oriented languages are object-based languages that take things a step further. They have built-in support for the two other pillars of OOP: Inheritance Polymorphism Example Java is an Object Oriented Languages because it supports all the concepts of Oops like Data Encapsulation, Polymorphism,Inheritance,Data Abstraction , Dynamic Binding etc. Also c#.
10th Dec 2016, 2:29 PM
Vipul Walia
Vipul Walia - avatar
+ 1
but JS supports inheritence
10th Dec 2016, 3:11 PM
NICKALL [EP]
NICKALL [EP] - avatar
+ 1
I could have sworn it did
10th Dec 2016, 3:24 PM
NICKALL [EP]
NICKALL [EP] - avatar
+ 1
ok
10th Dec 2016, 3:31 PM
NICKALL [EP]
NICKALL [EP] - avatar
0
No it does not Because Javascript is not a class-based object-oriented language , but rather a prototypal one. It's simply a design decision.
10th Dec 2016, 3:23 PM
Vipul Walia
Vipul Walia - avatar
0
okay let's talk about Prototype-based programming which is an OOP model that doesn't use classes, but rather it first accomplishes the behavior of any class and then reuses it (equivalent to inheritance in class-based languages) by decorating (or expanding upon) existing prototype objects. (Also called classless, prototype-oriented, or instance-based programming.) and Yes you can use Inheritance but only single inheritance. Also it is not as classically defined inheritance as a default option because that's how it was designed.
10th Dec 2016, 3:30 PM
Vipul Walia
Vipul Walia - avatar
0
Object oriented programming languages provides all features of oop like inheritance,polymorphism etc but object based programming languages only provide the facility of making objects and calling methods of the objects to program.
10th Dec 2016, 5:54 PM
Shiv Singh Sisodiya
Shiv Singh Sisodiya - avatar