Skip to content

checkpoint/Chapter13.html #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
annyhira414 opened this issue Apr 24, 2025 · 0 comments
Open

checkpoint/Chapter13.html #87

annyhira414 opened this issue Apr 24, 2025 · 0 comments

Comments

@annyhira414
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant