6.
What is the purpose of the attr_accessor method in Ruby classes?

8.
What is the purpose of inheritance in Ruby classes?

9.
What is encapsulation in Ruby classes?