Checkpoint 20.11.1.
Create a class
Person
with a constructor
that takes first_name
and last_name
and inititalize those attributes in the current object. Next, create a class called Customer
that inherits from Person
with a constructor that takes first_name
, last_name
, and id
. Call the constructor in Person
to initialize first_name
and last_name
and then also set the id
attribute in the Customer
object. For example, Person("Barb", "Ericson").last_name == "Ericson"
and Customer("Barb", "Ericson", "a1").id == ``"a1"
.