Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Based language doesnt use Inheritance

Status
Not open for further replies.

evergreean43

Technical User
May 25, 2006
165
US

I read this about what JavaScript is: faq216-6094

I also assume when you say JavaScriopt is object based it uses object oriented syntax for reference to objects but is not a fully object oriented language because you cant use Inheritance in JavaScript?

Please advise.
 
While JS doesn't give full-blown multiple inheritance like some other OO languages do, you can still emulate inheritance. Some JS libraries such as the Prototype library (not to be confused with the "prototype" collection) will make this easier with its Extend syntax.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks,

If it can handle single Inheritance (similiar to Java)
then I can assume JavaScript is an Object Oriented Language and not just an Object based language?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top