When we create a new instance of a class, we do the following:
Given the class:
class Person
def initialize
end
end
person = Person.new
I believe that since class Person
is an instance of Class
, the new
method is defined there. However, how is the initialize method called?