Ask Question
10 January, 18:49

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

+5
Answers (1)
  1. 10 January, 21:22
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers