JavaScript Classes. An In-Depth look. Part 4.

added by JavaScript Kicks
10/14/2019 8:58:33 AM

262 Views

An employee Is A person. Not mentioned before is the HAS-A relationship. This is basically a property of a class. The person Has A name. Since an employee will be an extension of a person, the employee Has A name as well. Think of Person as a Super-class and Employee as a sub-class.


0 comments