For example class Shape can represent set of shapes. Class is an abstract structure rather than specific instance. It consists of fields which hold the state of instances of the class and methods which represent the behavior of instances of the class. It differs from the majority of object-oriented languages that are based on classes.Ĭlass in a typical object-oriented language is a template for creating objects. JavaScript is an object-oriented programming language based on prototypes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |