Class variable Class variables are variables prefixed by @@ . class Shape @@no_of_shapes = 6 def instance_method_x puts "No: #{@@no_of_shapes}" end class << self def class_method_x puts "No: #{@@no_of_shapes}" end en...
tenzinchemi.in1 min readNo responses yet.