Exam 10: Introduction to Inheritance
Exam 1: Creating Java Programs68 Questions
Exam 2: Using Data74 Questions
Exam 3: Using Methods, Classes, and Objects68 Questions
Exam 4: More Object Concepts67 Questions
Exam 5: Making Decisions70 Questions
Exam 6: Looping72 Questions
Exam 7: Characters, Strings, and the Stringbuilder73 Questions
Exam 8: Arrays74 Questions
Exam 9: Advanced Array Concepts74 Questions
Exam 10: Introduction to Inheritance70 Questions
Exam 11: Advanced Inheritance Concepts70 Questions
Exam 12: Exception Handling65 Questions
Exam 13: File Input and Output74 Questions
Exam 14: Introduction to Swing Components74 Questions
Exam 15: Advanced Gui Topics69 Questions
Exam 16: Graphics74 Questions
Exam 17: Applets, Images, and Sound72 Questions
Select questions type
Match each term with the correct statement below.
-Must be the first statement in the subclass constructor
(Multiple Choice)
4.7/5
(42)
Which of the following statements will create a class named Red that is based on the class Color?
(Multiple Choice)
4.7/5
(36)
What is the difference between derived classes and base classes when considering two classes that inherit from each other?
(Essay)
4.7/5
(36)
Create a class named Account that contains an integer field for an account number and a double field for an account balance. The class contains a constructor that requires an account number and sets the balance to 0.0. Include a set() method for the balance, a get() method for the account number, and a get() method for the account balance. Create two subclasses named Checking and Savings. Within the Checking class, the get() method should display the String "Checking Account Information", the account number, and the balance. Within the Savings class, add a field to hold the interest rate, and require the Savings constructor to accept an argument for the value of the interest rate. The Savings get() method displays the String "Savings Account Information", the account number, the balance, and the interest.
(Essay)
4.9/5
(34)
Programmers and analysts sometimes use a graphical language to describe classes and object-oriented processes. This language is called ___________________________________.
(Essay)
4.9/5
(33)
When you create a class and do not provide a(n) ____, Java automatically supplies you with a default one.
(Multiple Choice)
5.0/5
(31)
Match each term with the correct statement below.
-A base class
(Multiple Choice)
4.8/5
(32)
An advantage to making a method ____________________ is that the compiler knows there will be only one version of the method.
(Short Answer)
4.9/5
(32)
Match each term with the correct statement below.
-A part of UML
(Multiple Choice)
4.8/5
(42)
Showing 61 - 70 of 70
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)