public class Person { public Football getFootball(String toyName) { if (toyName.equals("Football")) return new Football(); else return null; } public Piano getPiano(String toyName) { if (toyName.equals("Piano")) return new Piano(); else return null; } }