Challenge for Inheritance
Challenge
Create an object called Teacher
derived from the Person
class, and implement a method called teach
which receives a string called subject
, and prints out:
[teacher's name] is now teaching [subject]
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.