WEBVTT

1
00:00:00.000 --> 00:00:02.080
In the previous video you learned
how to define a class of Student.

2
00:00:02.080 --> 00:00:07.150
In this video I'll add new features to the
Student class by extending another class.

3
00:00:07.150 --> 00:00:10.770
I'll show you how extending classes
can help keep your code modular and

4
00:00:10.770 --> 00:00:12.310
easy to reason about.

5
00:00:12.310 --> 00:00:15.370
And if you're following along,
go ahead and open the latest workspace for

6
00:00:15.370 --> 00:00:16.910
this course.

7
00:00:16.910 --> 00:00:20.620
In the file subclass.js,
I'm going to add new properties and

8
00:00:20.620 --> 00:00:25.815
methods to the Student class by
extending this Person class.

9
00:00:25.815 --> 00:00:30.000
As you can see, the Person class takes
three parameters, name, age, and eyeColor.
