Simply explanation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Simply explanation

Can someone explain this very easily? I don't get that topic..

16th Jun 2017, 3:14 PM
Elias Fzada
Elias Fzada - avatar
7 Answers
+ 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.
16th Jun 2017, 10:03 PM
visph
visph - avatar
+ 2
'Blueprint' is the plan/scheme/layout (used to build the object)
16th Jun 2017, 11:16 PM
visph
visph - avatar
+ 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 ^^
16th Jun 2017, 11:27 PM
visph
visph - avatar
+ 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)
16th Jun 2017, 4:38 PM
Jamie
Jamie - avatar
+ 1
@ visph: Ah, you learn something new every day.
16th Jun 2017, 10:30 PM
Jamie
Jamie - avatar
0
Okay guys thanks you but what do you mean by "blueprint"?
16th Jun 2017, 11:12 PM
Elias Fzada
Elias Fzada - avatar
0
Didn't get the answer... Got an example?
16th Jun 2017, 11:17 PM
Elias Fzada
Elias Fzada - avatar