Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8274401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:43:24+00:00 2026-06-08T07:43:24+00:00

Possible Duplicate: prototype based vs. class based inheritance This question came up at work

  • 0

Possible Duplicate:
prototype based vs. class based inheritance

This question came up at work the other day – what’s the difference between a class-based language like Python, and a prototype-based language like Javascript? Aside from differing approches, both ways seem very similar and we struggled to find something that a class-based language could do that a prototype-based language couldn’t, or vice-versa.

Can anybody elaborate or go into any detail on how they differ fundamentally?

I haven’t found much online about the differences, just sites that show you how to accomplish one with the other (such as this: Simulating classes with prototypes in JavaScript)

Any enlightenment appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:43:25+00:00Added an answer on June 8, 2026 at 7:43 am

    It seems like you’re familiar with the actual languages, so you know what the difference is, right? I guess you’re asking about the differences at a deeper, maybe more “philosophical”, level.

    Class-based languages tend to work from the top down, general to particular. The classic example would be where you define a ‘Vehicle’ class, and then subclasses like ‘Car’, ‘Train’.

    A prototype-based language would instead tend to start with the particular, in fact start with an instance of the particular and modify that.

    I like this: http://steve-yegge.blogspot.ie/2008/10/universal-design-pattern.html

    In the end it’s not a question of if you can do inheritance in JS or whether there is something that you can do in one language but not the other. It’s a deep difference in their ways of approaching problem solving. For a particular problem a good idiomatic solution that made best use of the language’s features would probably be quite different in a prototype-based language from one in a class-based language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: JavaScript: Class.method vs. Class.prototype.method What's the difference between creating a prototype like
Possible Duplicate: JavaScript: Class.method vs. Class.prototype.method I am trying to understand object in JavaScript.
Possible Duplicate: Error: No previous prototype for function. Why am I getting this error?
Possible Duplicate: Use of 'prototype' vs. 'this' in Javascript? I went to various websites
Possible Duplicate: Use of 'prototype' vs. 'this' in Javascript? I am confused with these
Possible Duplicate: JavaScript function aliasing doesn't seem to work Why doesn't this work? function
Possible Duplicate: Use of 'prototype' vs. 'this' in JavaScript? OK, So I am somewhat
Possible Duplicate: How does JavaScript .prototype work? What is the use of prototype property
Possible Duplicate: jQuery & Prototype Conflict I think I have a problem between jQuery
Possible Duplicate: What's the difference between a file descriptor and file pointer? If I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.