Last active
October 15, 2018 17:30
-
-
Save mlcollard/bce9521c39352b2ced9f563c35868865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Club { | |
public: | |
// ... | |
private: | |
std::list<Person*> members; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Student { | |
public: | |
// ... | |
private: | |
Course course; | |
}; | |
class Course { | |
public: | |
// ... | |
private: | |
Student student; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Student { | |
public: | |
// ... | |
private: | |
Name firstname; | |
Name lastname; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Company { | |
public: | |
// ... | |
private: | |
std::vector<Location> locations; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Student { | |
public: | |
// ... | |
void setName(Name&); | |
private: | |
String firstname; | |
String lastname; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Student {}; | |
class UndergradStudent : public Student {}; | |
class GradStudent : public Student {}; | |
class TA: public GradStudent {}; | |
class RA: public GradStudent {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment