module Base
def show
puts " base#show "
end
end
class Car
extend Base
end
#class method
Car.show
class Bus
include Base
end
#object method
b = Bus.new
b.show
def show
puts " base#show "
end
end
class Car
extend Base
end
#class method
Car.show
class Bus
include Base
end
#object method
b = Bus.new
b.show