Join Dylan Israel for an in-depth discussion in this video Challenge: Inheritance, part of TypeScript: Object-Oriented Programming.
(upbeat music) … - [Instructor] Welcome to challenge two, inheritance. … This is going to be based off of our challenge one. … And we're going to build upon that … except now we're going to use the user class below. … Hopefully it looks somewhat familiar … and we're going to create an admin class … that simply extends user … and a guest class that implements user. … Typical for your standard application … that has authentication. … You're going to have some sort of user roles, … and that's what we're going to do. … We want to practice a little bit of how one matching a shape … and another actually being a child differs. … Now, we also want to make sure that we use constructors … that don't let those values just be inherited upwards. … So make sure you use the first name, … last name and email in your constructor. … When you go and implement and extend, … just so that you can get a little bit of practice … remembering which one does what. … Let's go ahead and get started. … …
Skill Level Intermediate
TypeScript: Upgrades and Featureswith Emmanuel Henri1h 15m Advanced
TypeScript for Node.js Developerswith Emmanuel Henri1h 2m Intermediate
1. Classes in TypeScript
2. Inheritance in TypeScript
3. Access Modifiers in TypeScript
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.