Class and instance methods

Define a method for the Computer class.

Solutions A and B are answers to the question above. One of them provides a class method and the other an instance method.

Which solution defines an instance method? Explain the differences between the two solutions.

Solution A
class Computer
  def laptop
    "Laptop computer."
  end
end
 
Solution B
class Computer
  def self.desktop
    "Desktop computer."
  end
end
 
Log in to accept this challenge