Seller Type Modeling

Start Timer

0:00:00

Upvote
0
Downvote
Save question
Mark as completed
View comments

Let’s say we’re building a system for eBay to support multiple types of sellers: individuals, small businesses, and enterprise merchants. Each seller type shares core attributes like seller_id and account_status, but has unique features—enterprise merchants, for example, can manage up to 50 sub-accounts, while individuals have simpler profiles.

How would you decide between using composition or inheritance to model these seller types, and what trade-offs would you weigh in making your choice?

.
.
.
.
.


Comments

Loading comments