Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int _tmain(int argc, _TCHAR* argv[])
- {
- Person * p = new Person("Chad", "123 Avenue", "Minot", "North Dakota", "23422", "(345)-343-3431");
- Student * s = new Student("Gordon", "407 Merchak Circle N", "Hudson", "WI", "54016", "(555)-234-2342", 'C', "Programming II", 3.0);
- Professional * prof = new Professional("Brad", "456 Avenue", "Fargo", "Alaska", "12333", "(111)-33-5555", "Farmer");
- p -> display(); // call display of the person class
- s -> display(); // call the display of the student class
- prof -> display(); // call the display method of the professional class
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement