classdef Teacher < Person
    properties
        yearsTaught
    end
    methods
        function obj=Teacher(name, age, yearsTaught)
            obj@Person(name,age)
            obj.yearsTaught = yearsTaught;
        end
    end
end