Basing one class on another is called inheritance.
# Creating a class named A and then using the A class as a base classfor another class, B:
# Note that the syntax class B < A indicates that the B class inherits all that A class has
class A
.
.
.
end
class B < A
.
.
.
end