Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

solve python
image text in transcribed
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

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

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

More Books

Students also viewed these Databases questions

Question

2. List the advantages of listening well

Answered: 1 week ago