Practice mode C#

Which statement about an abstract class in C# is true?

Correct answer A. It cannot be instantiated directly and may contain abstract members without bodies

Explanation

An abstract class is an incomplete base class. You cannot write new Shape() for it, but it can mix abstract members, which have no body and must be overridden by non-abstract derived classes, with ordinary implemented methods, fields and constructors used by derived classes. abstract and sealed contradict each other, so combining them is a compile error.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.