Computer Science, asked by chennuruvigneshreddy, 10 months ago

Question 20
Consider the following statements made by Jack, Peter, John and Linda.
Jack A child class of an abstract class can be instantiated only if Child overrides all the abstract methods of Parent class
Peter. An abstract method should have a definition.
John: An abstract method can be overridden in Child class(es).
Linda If a Parent class has 2 abstract methods, Child class should override any one of the abstract methods of Parent class
Whose statement(s) is/are INCORRECT?
Only Jack and Peter
Only Jack, Peter and Linda
diply Peter and Linda
O All Jack, Peter, John and Linda​

Answers

Answered by unnati2005singh
17

Answer:

sorry I don't know the answer.

.

Answered by ZareenaTabassum
0

The answer to the question is:

"Only jack and peter"

  • An abstract class is one that has been declared abstract; it may or may not have abstract methods. Although abstract classes can't be instantiated, they can be subclassed.
  • An abstract method is one that is declared using the abstract keyword within an abstract class but does not have a definition. We can claim the methods as abstracts when we only need the method declaration in a superclass.
  • Since the derived class extends the abstract methods of the base class, it is required in Java to override abstract methods of the parent class in its child class.
  • If a class contains one or more abstract methods, they must be declared abstract. Methods that are not abstract may exist in an abstract class. These methods are inherited in the usual way by child classes. A non-abstract child class of an abstract parent class must override all of its parent's abstract methods.

SPJ3

Similar questions