Ruby - Classes and Objects
Which of the following is the correct way to declare a class named
Car in Ruby?Car in Ruby?class ClassName and end with end.def is for methods, module defines modules, and Car class is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions