Please enable JavaScript to use CodeHS

Utah Computer Programming 1 and 2

Lesson 16.3 Built-In Methods

Description

In this lesson, we will learn how to override the built-in methods repr and eq in order to define how the object will create a string representation of itself and define equivalence for a specific class.


Objective

SWBAT override the repr method to define how the object will create a string representation of itself.
SWBAT override the eq method to define equivalence for this specific class.