Answered step by step
Verified Expert Solution
Question
1 Approved Answer
develop use case diagram for this general class for a car dealership. class CarDealership: def __init__(self, name, payment): self.payment=payment self.name=name def method3 (self): print(f 'Dealer
develop use case diagram for this general class for a car dealership.
class CarDealership: def __init__(self, name, payment): self.payment=payment self.name=name def method3 (self): print(f 'Dealer name : {self.name}') def method 4 (self): print(f 'Dealer payment : {self.payment}'). class CarDealeri (Car Dealership): definit__(self, name, payment): super(). _init__(name, payment) def methodl (self): print('I am in method l of subclass 1') def method 2 (self): print('I am in method 2 of subclass 1') class CarDealer2 (Car Dealership): def __init__(self, name, payment): super(). __init__(name, payment) def methodl (self): print('I am in method 1 of subclass 2') def method2 (self): print('I am in method 2 of subclass 2') class CarDealer3(Car Dealership): definit__(self, name, payment): super(). init__(name, payment) def methodl (self): print('I am in method i of subclass 3') dat haaALFI. def methodl (self): print('I am in method 1 of subclass 3') def method2 (self): print('I am in method 2 of subclass 3') x=Car Dealeri('Jamal',10000) y=Car Dealer2('Gip', 8000) z=CarDealer3('Savannah', 25000) x.methodl() x.method 2 () x.method3 ( ) x.method4 ( y.methodl() y.method2 () y.method3 () y.method 4 () z.methodi() 2.method2( ) 2.method3 () z.method 4 ()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started