Question: solve python In this question, you need to create two classes: Phone and Smartphone. There MusT be an inheritance relationship between them. Please carefully examine
In this question, you need to create two classes: Phone and Smartphone. There MusT be an inheritance relationship between them. Please carefully examine the given code and write the implementation of the classes below the code. p1 = Phone ("Samsung", " 500 ") fbrand, fmodel p2 = Smartphone ("IPhone", "S20", "15inch") fbeand, fimodel, tscreensizo for phone in [p1, p2]: print (phone) phone. MakeCa11 ("Daddy") phone. Connect'oInternet ("Meturoan") print ( ) Samsung 500 \#output of print(phone) statement Calling Daddy foutput of phone. MakeCal1 statement Not supported. foutput of phone. ConnectroInternet statement IPhone s20 15 inch foutput of print (phone) atatement Calling Daddy foutput of phone. MakeCall statement Connecting to Meturoam foutput of phone. Connectrointernet statement classs Phone (brand , model)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
