You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
13.2.3
True or false?
a. An abstract class can be used just like a nonabstract class except that you cannot use the new operator to create an instance from the abstract class.
b. An abstract class can be extended.
c. A subclass of a nonabstract superclass cannot be abstract.
d. A subclass cannot override a concrete method in a superclass to define it as abstract.
e. An abstract method must be nonstatic.
a. True
b. True
c. False
d. False
e. True
d. False ❌
Actually, this one is True.
➡️ A subclass cannot override a concrete (non-abstract) method in a superclass and make it abstract again — that would violate inheritance rules.
So, the correct answer should be True.
The text was updated successfully, but these errors were encountered:
13.2.3
True or false?
a. An abstract class can be used just like a nonabstract class except that you cannot use the new operator to create an instance from the abstract class.
b. An abstract class can be extended.
c. A subclass of a nonabstract superclass cannot be abstract.
d. A subclass cannot override a concrete method in a superclass to define it as abstract.
e. An abstract method must be nonstatic.
a. True
b. True
c. False
d. False
e. True
d. False ❌
Actually, this one is True.
➡️ A subclass cannot override a concrete (non-abstract) method in a superclass and make it abstract again — that would violate inheritance rules.
So, the correct answer should be True.
The text was updated successfully, but these errors were encountered: