Join Dylan Israel for an in-depth discussion in this video Challenge: Encapsulation, part of TypeScript: Object-Oriented Programming.
(upbeat music) … - [Instructor] All right, welcome to the final challenge, … challenge three, encapsulation. … This is going to be fun. … We're you used to have the classes … that we defined from challenge two. … We dropped off that guest class … just because we're going to have some inheritance issues … that are shape matching … isn't going to work with some of our access modifiers, … and that's okay. … But we're going to practice our encapsulation … and our access modifiers, … and it's going to be a little bit more generic … than we've done in the other two challenges. … What I mean by that is I'm not going to tell you exactly … what properties to create or what methods. … I want you to think about it … and really think about what would make sense, … what would be an appropriate read-only property, … why might I want you to be explicit … with your public properties in step three, … and what's an appropriate protected property … in our user class, and go and write a private method … to access that, and maybe modify it. …
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.