Inheriting methods from other classes
问题 I'm trying to wrap my head around inheritance for a uni assignment and I've ran into a few problems so far. I'm trying to construct a method in my Pet class which holds the following code: public class Pet { protected String printed; public Pet() { } public String checkFunc(String definitelyPrinted) { printed = "CheckFunc is working! Oh boy!"; System.out.println("Those variables were useless"); return printed; } } This is being called by: public class KennelDemo extends Pet { private String