Untitled
class Animal
attr_reader :name
def initialize(name)
@name = name
end
def speak
raise NotImplementedError, "Subclasses must implement this method"
end
end
Control Panel
class Animal
attr_reader :name
def initialize(name)
@name = name
end
def speak
raise NotImplementedError, "Subclasses must implement this method"
end
end