Day 6: User-defined datatypes
class
A user-defined datatype which groups together related pieces of informationInstance
An instance is an occurrence of a classclass student{public: char *name; int studentID;};int main(){ student s1; student s2;}
?
Constructor
Method that is calle whien an instance is created.struct: public by default
class: ?private by default