Ask Question
18 July, 14:06

When you declare a method as abstract method? Can I call a abstract method from a non abstract method?

+5
Answers (1)
  1. 18 July, 16:30
    0
    Answer: A method without body is called abstract method. A abstract method can be called from a non abstract class or method provided it is inherited using a subclass.

    Explanation:

    An abstract method is a method which does not have a body, it just has opening and closing curly braces. A class having an abstract method is also declared as abstract class. We cannot make an object of the abstract class.

    example : public abstract float multiply (float x, float y);

    is an example of abstract method.

    calling an abstract method from a non abstract method is possible provided it is inherited by a non abstract subclass.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “When you declare a method as abstract method? Can I call a abstract method from a non abstract method? ...” 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