Hi all,
I have one file named class1.rb this is structure
module Person
class Amit
def initialize
@a=10
end
end
end
another file named class2.rb
module Person
class Sumit < Amit
def aos
puts "#{@a}"
end
end
end
i am not able to acess variable @a
in Sumit
how do i do that??