Home / Programming MCQs / Ruby MCQs / Question

M

Mr. Dubey • 51.33K Points
Coach

Q. What is the difference between a class method and an instance method in Ruby?

(A) Class methods are called on the class itself, while instance methods are called on instances of the class
(B) Instance methods are called on the class itself, while class methods are called on instances of the class
(C) Class methods are public, while instance methods are private
(D) Instance methods are public, while class methods are private

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.