Which keywords cannot be used for a class which has been - ProProfs Discuss
Advertisement

Which keywords cannot be used for a class which has been declared final?

Which keywords cannot be used for a class which has been declared final?

Change Image    Delete

Asked by Kvpbusiness, Last updated: Nov 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

B. Mary

B. Mary

Health comes first, and I happen to know a lot about health.

B. Mary
B. Mary, Health Care manager, MHA(Master's In Healthcare Administration), Raleigh, North Carolina

Answered Dec 02, 2019

The correct answer to this question is Abstract. The main part of this sentence that helps one know that it is abstract is the word-final, which indicates it has been completed. When it comes to classes, an abstract is a class that is incomplete.

This is why that keyword is unable to be used. For abstracts to work correctly, it is necessary for them to rely on other classes. Abstracts are not capable of surviving on their own. In the end, they work with other classes, and it is important to know those classes when programming language is being used.

upvote downvote
Reply 

N. Kingsley

N. Kingsley

N. Kingsley
N. Kingsley, Writer, Columbus

Answered Oct 24, 2018

It should be noted that it has already been stated that the class is final. Abstract refers to a class that is known to be incomplete. This means that it would need to rely on other subclasses so that it can work properly. If the class is already decided as final, this means that final and abstract cannot be in just one class.

An abstract cannot survive on its own. There are still other subclasses that you may have to know about. It will help you understand what you should do next if in case there are still some things that you need to finalize.

upvote downvote
Reply 

kvpbusiness

kvpbusiness

kvpbusiness
Kvpbusiness

Answered Nov 13, 2017

Abstract
upvote downvote
Reply