what do you mean by partial abstraction in java ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what do you mean by partial abstraction in java ?

because abtract class has abstract and not abstract methods i.e. method with body, Is it right ???

24th Aug 2019, 10:37 AM
Kabir
Kabir - avatar
2 Answers
0
It's like saying although you dont know what an animal looks like you still know that all animals do somthing similar like make sounds so it's ok to give that method a body because as far as I am aware all animals make sounds and want all my derived classes to know this.
24th Aug 2019, 9:03 PM
D_Stark
D_Stark - avatar
0
Ramiz exactly and Interfaces can have default methods
24th Aug 2019, 11:56 PM
zemiak