00:01
Okay, so this question says, barrio 3.
00:04
Your local community college is opening a new campus in a different city and has asked your software firm to create a student roster program.
00:12
So you have to develop a class that represents the roster of students who are currently studying there.
00:18
What components matchwords will need to be included in a student class? why? please conclude a python code sample.
00:27
The question is really, really vague, but let's do it anyway.
00:33
So we're going to instantiative class, we're going to call it the roster, i guess.
00:38
And it's going to initialize with, i guess, self -dots students.
00:45
And that's going to be a list, an empty list.
00:52
And so this question is incredibly open -ended, actually.
00:55
But i mean, this, we can already say that this represents the students.
01:04
And maybe we want student names.
01:06
Maybe we want students numbers.
01:14
Maybe we want average grades.
01:20
I don't know.
01:22
So it's not really super clear what else we want.
01:27
But we can define this class and initialize it.
01:33
So if i want now to make a roster, you know, i have this roster, whatever.
01:38
And so if i want to say my roster, is an insatiation of this class and we have it.
01:48
So we can do something like self or my ross dot names.
01:52
Obviously we haven't added any, but we can do something.
01:56
We can maybe define a method and you call it add student.
02:01
And it's going to take a name.
02:04
Of itself, of course, it's going to take a name, a number, and a grade.
02:11
And what it's going to do is say self.
02:14
Self .names.
02:18
Whatever name.
02:20
We're going to do the same thing to the other ones.
02:27
So we're going to add their number.
02:33
And we're going to add their grade.
02:36
Ok...