Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

class Residence: def _ _ init _ _ ( self , addr ) : self.address = addr def get _ residence ( self ) :

class Residence:
def __init__(self, addr):
self.address = addr
def get_residence (self):
print (f'Address: {self.address}')
class Identity:
def __init__(self, name, age):
self.name = name
self.age = age
def get_Identity (self):
print (f'Name: {self.name}, Age: {self.age}')
class DrivingLicense (Identity, Residence):
def __init__(self, Id_num, name, age, addr):
Identity.__init__(self,name, age)
Residence.__init__(self,addr)
self.License_Id = Id_num
def get_details (self):
print (f'License No.{self.License_Id}, Name: {self.name}, Age: {self.age}, Address: {self.address}')
license = DrivingLicense(180892,'Bob',21,'California')
license.get_details()
license.get_Identity()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

OUTCOME 2 Describe how a training needs assessment should be done.

Answered: 1 week ago