/****************************************************************************************** ex1.cpp simple intro to OOP ********************************************************************************************/ #include <iostream> #include <string> using namespace std; //class definition class name { public: string first; string last; }; void main() { name mother; mother.first = "Helen"; mother.last = "MacHines"; cout << mother.first << endl << mother.last << endl; name father; father.first = "Doug"; father.last = "Trebbin"; cout << father.first << ' ' << father.last << endl; return; }