+ 1

How can the subclass override a concrete method of the superclass and declare it as abstract?

Because we know abstract subclass can't implement or override an abstract method, i mean if we declare it as abstract .

7th Mar 2020, 11:13 AM
D Ģ²E Ģ²S Ģ²S Ģ²I Ģ²E Ģ²- Ģ²B Ģ²A Ģ²H Ģ²I Ģ²R Ģ²U Ģ²
D Ģ²E Ģ²S Ģ²S Ģ²I Ģ²E Ģ²- Ģ²B Ģ²A Ģ²H Ģ²I Ģ²R Ģ²U Ģ² - avatar
2 Answers
+ 1
Is this what you are looking for? https://code.sololearn.com/cMMVwTvxs8X9/?ref=app
7th Mar 2020, 12:00 PM
Avinesh
Avinesh - avatar
0
Abstract class: is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class). Abstract method: can only be used in an abstract class, and it does not have a body. The body is provided by the subclass (inherited from).
7th Mar 2020, 11:43 AM
ROBIN C R
ROBIN C R - avatar