Exam 7: Inheritance
Exam 1: Getting Started46 Questions
Exam 2: Console Input and Output29 Questions
Exam 3: Flow of Control43 Questions
Exam 4: Defining Classes I44 Questions
Exam 5: Defining Classes Ii46 Questions
Exam 6: Arrays47 Questions
Exam 7: Inheritance43 Questions
Exam 8: Console Input and Output43 Questions
Exam 9: Exception Handling45 Questions
Exam 10: File IO46 Questions
Exam 12: Uml and Patterns22 Questions
Exam 13: Interfaces and Inner Classes32 Questions
Exam 14: Generics and the Arraylist Class31 Questions
Exam 15: Linked Data Structures43 Questions
Exam 16: Collections and Iterators44 Questions
Exam 17: Swing I37 Questions
Exam 18: Swing II31 Questions
Exam 19: Java Never Ends18 Questions
Exam 11: Recursion43 Questions
Exam 20: Applets25 Questions
Select questions type
A derived class contains only public instance variables and public methods from the base class.
(True/False)
4.9/5
(47)
Explain how parent and child classes are related to base and derived classes.
(Essay)
4.9/5
(43)
What is an "is a" relationship? How does it apply to the world of objects?
(Essay)
4.8/5
(40)
The equals method for a class should have _________ as the type of its one parameter.
(Multiple Choice)
4.8/5
(48)
An instance variable (or method)that is private in a base class is accessible by name in the definition of a method in any other class.
(True/False)
4.9/5
(32)
Inheritance is the process by which a new class - known as a _________ - is created from another class,called the _____________.
(Multiple Choice)
4.8/5
(32)
Create a test driver to test the functionality of your Rectangle class created in number 14 above.
(Essay)
4.9/5
(44)
Create a class to represent a Rectangle.Your class should contain instance variables for length and width,as well as member method to calculate the area and perimeter.
(Essay)
4.7/5
(36)
The special syntax for invoking a constructor of the base class is:
(Multiple Choice)
4.8/5
(38)
When you define a derived class,you give only the added instance variables and the added methods as well as all the methods from the base class.
(True/False)
4.8/5
(48)
Define a base class to represent a Clock.Your class should have instance variables for hours,minutes and seconds.
(Essay)
4.9/5
(26)
Explain what a call to super()does in a constructor of a derived class.
(Essay)
4.7/5
(36)
Showing 21 - 40 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)