- 1
Simply explanation
Can someone explain this very easily? I don't get that topic..
7 Réponses
+ 3
@Jamie:
You're mostly right, in theory...
Javascript object model initially doesn't provide 'class' built-in structure, as object implementation in it was based on prototype paradigm (which is another way to think OO, not so different in finality). Only very recent version of specification have added a 'class' keyword to use more easily class paradigm, but quite simulated through prototype implementation ^^
@Elias Fzada:
Shortener, think methods are function linked specifically to an object, and called with reference to it.
+ 2
'Blueprint' is the plan/scheme/layout (used to build the object)
+ 2
Consider that a class is the model (prototype, but I guess this will confused you much more :P) of the future created ones. The original object that you duplicate to make others of same model ^^
+ 1
Method: a function within a Class.
Class: Blueprint for an object.
Object: Instance of a Class pointed to by a variable.
(At least in most OO languages, feel free to correct me on js, I'm not a web dev)
+ 1
@ visph: Ah, you learn something new every day.
0
Okay guys thanks you but what do you mean by "blueprint"?
0
Didn't get the answer... Got an example?