+ 2

Abstract class

did i use abstract class correctly here? https://code.sololearn.com/c3iodLgVU6Pq/?ref=app

26th Oct 2017, 1:14 AM
2 Answers
+ 2
It looks right to me. The way you have it set up, you can add more functionality by form of inheritance. Just bear in mind that this may limit you, as you can only inherit from one class.
26th Oct 2017, 1:42 AM
+ 2
Very well! 👌
26th Oct 2017, 6:21 AM
Chriptus13 - avatar