



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Wei; Class: Intro Computer Programming; Subject: Computer Science; University: Saint Joseph's University; Term: Unknown 1989;
Typology: Study notes
1 / 5
This page cannot be seen from the preview
Don't miss anything!




(c) base class (d) all of the above
Explain what a call to super() does in a constructor of a derived class. Define a base class to represent a Clock. Your class should have instance variables for hours, minutes and seconds. Define a derived class to represent an alarm clock. Use the Clock class, created in number 2 above, as your base class. Create a test driver to test the functionality of your AlarmClock class created in number 3 above. Explain how parent and child classes are related to base and derived classes. Explain the difference between method overloading and method overriding. What is an “is a” relationship? How does it apply to the world of objects?