Transcript
00:00 Alright. Let's talk about classes. The core fundamental principle or or feature of TypeScripts that enables object oriented TypeScript. So here, we've got a very basic idea for a class. User has a name and email.
00:14 This is the syntax you start with class. You give it the name and then you have your class body. You have properties that, each user is going to have. So our user will have a name and email. And then you have this constructor that takes the, given name and email and sets that onto our instance of the user.
00:34 And then you also have methods that you can create, and I wouldn't bother with that, but you can, with that return value. And you can have any number of methods. You can have any number of properties. Lots of really cool stuff in here. You even have the option of having private properties which we'll talk about as well.
00:52 There's also Some of your agents might use this agent, or this shorthand, so you could write all of this as simply this. And in this exercise, I'm gonna explain to you why I think that's a bad idea. You should not be doing that. Alright. We also, talked about some defaults.
01:08 I give some tips on, how to take an options, rather than a bunch of parameters. I think it's gonna be great. So let's jump right into the exercise.
