Ruby - Basics and Runtime
What will be the output of the following Ruby code?
num = 10 puts num.class
num = 10 puts num.class
class methodclass method returns the class of the object it is called on.Integer class (Fixnum and Bignum were unified).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions