Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript framework for emulating OOP [closed]

Tags:

javascript

oop

What javascript OOP frameworks do you use?

I need a library to emulate Javascript OOP programming with constructors, members, properties(public, private), inheritance

Thanks for your answer

like image 376
zim32 Avatar asked Jun 03 '11 14:06

zim32


People also ask

Can JavaScript be used for OOP?

JavaScript is not a class-based object-oriented language. But it still has ways of using object oriented programming (OOP). In this tutorial, I'll explain OOP and show you how to use it. The most popular model of OOP is class-based.

Which OOP concept is not supported by JavaScript?

JavaScript is Object-Based, not Object-Oriented. The difference is that Object-Based languages don't support proper inheritance, whereas Object-Oriented ones do.

Which oops concept supported by JavaScript?

JavaScript lets objects inherit properties from parent objects or any other objects. It uses the concept of prototypal inheritance.


2 Answers

Javascript is fully Object Oriented Language, if you didn't know it yet, it means you don't know it well enough. Though some concepts differ from e.g. JAVA, or C# (like inheritance, encapsulation & etc.) they can be successfully simulated (using prototype chaining, closures & etc.).

take a better look at language and you'll find out that no additional emulating is needed to implement OOP behavior in it.

like image 125
Headshota Avatar answered Sep 20 '22 11:09

Headshota


Check out the Prototype framework,

Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere

like image 28
Loktar Avatar answered Sep 20 '22 11:09

Loktar