Professional Documents
Culture Documents
1.
2.
3.
4.
5.
6.
7.
a)
b)
c)
d)
True.
False. Classes that are derived from existing classes demonstrate an is-a relationship.
False. A class can have many levels of inheritance.
False. A class that inherits another class includes the keyword extends in the class
declaration.
e) True.
f) False. Members of a base class that are declared private are not accessible to derived
classes.
g) True.
h) True.
i) False. An abstract class cannot be instantiated because they should not represent
objects.
j) True.
k) False. An abstract method does not include a method body.
l) True.
m) False. An interface cannot be inherited.
n) True.
o) False. The methods dened in an interface are public by default.
p) False. The Comparable interface contains one method.