Skip to content

checkpoint/Chapter13.html #87

Open
@annyhira414

Description

@annyhira414

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions