Question: language is python Example 1: Design a class named Information that holds the following personal data: name, age, address (this attribute has a default value
language is python

Example 1: Design a class named Information that holds the following personal data: name, age, address (this attribute has a default value of "unknown"), and phone number. . All the attributes are defined as private. Write appropriate accessor and mutator methods. Complete the definition of the_str_ method, such that it displays each Information object's data in the following format: name: "Sarah Jones" - age: "21" - address: "2000 Simcoe North" Create two instances of the class. Create a function named display_info that accepts an Information object as an argument and display name, address, age, and phone number for the object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
