October 24, 2014

Ruby – The “Initialize” method

This is the c# equivalent of the constructur method.


You can find all my latest posts on medium.

In c# you don’t have to explicitly define the constructor class, because it by default already implicitly specified in every class that you define, however in Ruby you do have to explicitly define it.

Also you invoke the initialize method by calling a special reserved method called “new”