1.

How can we create a Ruby Object?

Answer»

How can we create a Ruby OBJECT?
Creating object in Ruby is very unique TYPE of method which is predefined in Ruby library. To create OBJECTS we use new method of the class. Below is the syntax for creating objects

Objectexample=Nameofclass.new



Discussion

No Comment Found