archives

programming languages

This tag is associated with 1 post

Difference between class and object, and function and method

The most obvious difference from a class and an object is that classes serve only one purpose, they are the template from which objects inherit properties and functionality. A class is like a blueprint from which a house is built. In JavaScript there are no classes. Instead, each object can function as a class, meaning … Continue reading