CS202
2- ‹#›
Constructor
n
The constructor is implicitly invoked
when an object of the class is formed:
ä
ä
int main() {
ä
ä
list fun_videos;
implicitly calls the
constructor
ä
ä
list all_videos[10];
implicitly calls the
ä
constructor 10 times for
ä
each of the 10 objects!!
n