And last, the superclass defines an abstract print() virtual method that we need to implement. This is only used for…