Classes and Instances
As you learn about Ember, you'll see code like Ember.Component.extend() and DS.Model.extend(). Here, you'll learn about this extend() method, as well as other major features of the Ember object model.
Defining Classes
To define a new Ember class, call the extend() method on Ember.Object:
const Person = Ember.Object.extend({
say(thing) {
alert(thing);
}
});
This defines a new Person class with a say() method.
You can also create a subclass from any existing class