Question
SE - Quiz 2 Question 8 of 50 What is an abstract method? (1 correct answer) A method to which a signature has been provided, but no implem entation for that method is given. Any method which belongs to an abstract class. A concrete method
Answer
3.8
(231 Votes)
Leland
Master · Tutor for 5 years
Answer
Let's go systematically step-by-step:1. An abstract method is a method for which a signature is provided in an abstract class but it has no defined behavior, this is, there's no actual code written for the method.2. The task of providing an actual implementation or behavior to these abstract methods lies in the classes that inherits or extend the given abstract class.3. An abstract method isn't necessarily any method that belongs to an abstract class. Abstract classes may contain a method with complete implementation(code), these methods aren't called abstract methods instead, they are known as concrete methods. 4. A concrete method definitely doesn't qualify as an abstract method as by definition, a concrete method has both a signature and a clear defined implementation.So, following the logical steps we've laid out, option to the quiz question; "What is an abstract method?"- "A method to which a signature has been provided, but no implementation for that method is given"should be the right answer.