Given: What is true about the class Wow?
A.
It does not compile because an abstract class cannot have instance variables.
B.
It does not compile because an abstract class must have at least one abstract method.
C.
It compiles without error.
D.
It does not compile because an abstract class cannot have private methods.
E.
It does not compile because an abstract class must have a constructor with no
arguments.
C
A. It does NOT compile because an abstract class CANNOT have instance variables.
Explanation:
An abstract class is a class that is declared abstract—it may or may not
include abstract methods (not B, not D). Abstract classes cannot be instantiated, but they can be subclassed. The code compiles with a failure for line ‘public wow (int wow) {‘
Given answer is Correct. It compiles without error. Tried it.
BTW what you have mentioned is a method and a method needs a return type.
In the question it is a constructor – notice the W(caps)
Answer: C
Explanation:
Abstract class can have instance variables.
Is not mandatory to implement abstract methods in abstract class.
Abstract class can have private methods.
Abstract class can have constructor with arguments.
https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html
C