Ask Question
12 September, 09:43

In Java an abstract class cannot be sub-classed

? True

? False

+5
Answers (1)
  1. 12 September, 10:55
    0
    False

    Explanation:

    An abstract class is a class declared abstract - it may or may not include abstract techniques. It is not possible to instantiate abstract classes, but they can be sub-classed.

    Abstract method declaration

    abstract void moveTo (double X, double Y);

    Usually the subclass offers solutions for all of the abstract techniques in its parent class when an abstract class is sub-classed. If not, however, the subclass must be declared abstract as well.

    Example

    public abstract class GraphicObject {

    / / declaring fields

    / / declaring non-abstract methods

    abstract void draw ();

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “In Java an abstract class cannot be sub-classed ? True ? False ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers