"can be used to extend or modify functionality in Ruby applications"
Source: Class vs Instance Methods
class SayHello
# Class Method
def self.from_the_class
"Hello, from a class method"
end
# Instance Method
def from_an_instance
"Hello, from an instance method"
end
end
Output:
>> SayHello.from_the_class
=> "Hello, from a class method"
>> SayHello.from_an_instance
=> undefined method `from_an_instance' for SayHello:Class
>> hello = SayHello.new
>> hello.from_the_class
=> undefined method `from_the_class' for #<SayHello:0x0000557920dac930>
>> hello.from_an_instance
=> "Hello, from an instance method"
Finish 28_02_19_albums_class_challenge.rb