0

Explanation

here, the super class remains the class animal, while the subclass is dog.. as you can see, dog inherits attributes from animal using the "extends" keyword however, you still need to set the variable for the number of leg's.. the last piece of code is just a call for the dog subclass to showcase its God giving abilities which is animal eats

6th Mar 2018, 5:55 PM
Dark Webb
Dark Webb - avatar
1 Réponse
+ 8
??Thanks for the explanations?
6th Mar 2018, 6:09 PM
᠌᠌Code X
᠌᠌Code X - avatar