+ 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 Réponses
+ 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