0

How to print only from a superclass and not from its child classes's method?

9th Jul 2016, 5:14 AM
jayrajarora2694
jayrajarora2694 - avatar
2 Answers
+ 1
use the super function you're probably literally just about to find out about lol. (the super function is covered in the lesson immediately after finding out about inheritance)
9th Sep 2016, 3:45 PM
Phil
Phil - avatar
0
@Sutax Kapoor I meant to say if there is code to be printed in class B also but want only A's 1 printed
11th Jul 2016, 5:42 AM
jayrajarora2694
jayrajarora2694 - avatar