Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

make a use case and a Class diagram for this generic delearship class. The use case diagram should gave 8 use cases. class CarDealership: def

make a use case and a Class diagram for this generic delearship class. The use case diagram should gave 8 use cases.
image text in transcribed
image text in transcribed
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

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

Students also viewed these Databases questions