Amazon Interview Question
Software Engineer / DevelopersI own the Site and love cricket.
We can have classes:
1.Teams
2.Scorecard/Scorebook directly attached to database
3.Players :Batsmen Bowlers Allrounders Wktkeeper all inheriting it
4. Stadiums/Venues
5.Events: International Domestic -> One day ,Test,t-20 ->World Cup,Champions league IPL etc
Now u can have members functions as obvious.
Decide Inheritence heirarchy such as IPL must have a Scorecard object e.t.c
Criket?
- pansophism June 06, 2011