Talk:Video rental system
Line 12: | Line 12: | ||
− | Hey last week in class I came up with a different solution to the Video (Title) setup. | + | Hey last week in class I came up with a different solution to the Video (Title) setup. Basically the "Video"-class is the Superclass. "DVD" and "VCR" are Subclasses of "Video" since they contain all general Attributes and Methods of Video but might have certain specific Attributes and Methods as well. And every "DVD" or "VCR" has 0...* "physical_Items". What do you think? --[[User:Dominic Winkler|Dom]] 00:50, 23 July 2008 (UTC) |
[[Image:OO_VideoRental.png]] | [[Image:OO_VideoRental.png]] |
Revision as of 00:52, 23 July 2008
Made page. put up pics. --Jason Clutterbuck 05:18, 17 July 2008 (UTC)
Sounds like fun lecture. I missed this lecture cause I thought I wont be taking this paper. But I am back now! Anyway, after I look at the latest design, isn't it better to have PhysicalHolding Class as an abstract class? To exist, a PhysicalHolding object has to be in a form of VCR or DVD or something else (BlueRay, etc) objects so PhysicalHolding itself is a concept, not a real object. Thus I think PhysicalHolding class should be shown as an abstract class. -- Jojo 15:20, 18 July 2008
Agreed -- David Thomson 23:17, 20 July 2008 (UTC)
Abstraction achieved --Jason Clutterbuck 10:00, 21 July 2008 (UTC)
Hey guys, check out Riel's heuristic #5.7 --Wal 01:48, 21 July 2008 (UTC)
We might be getting to the point where we might need more detailed requirements to improve much further, but I'm questioning the use of enums for DVD zone and Title genre. Riel's heuristic #5.12 (and #5.13) suggest that if we need to branch off the values of these for any reason that we should create class hierarchies and use polymorphism instead. Again, I think it depends on how they are used. If genre is only ever used to display a string for example, then I doubt it would be necessary (or useful). --Kris 23:50, 21 July 2008 (UTC)
Hey last week in class I came up with a different solution to the Video (Title) setup. Basically the "Video"-class is the Superclass. "DVD" and "VCR" are Subclasses of "Video" since they contain all general Attributes and Methods of Video but might have certain specific Attributes and Methods as well. And every "DVD" or "VCR" has 0...* "physical_Items". What do you think? --Dom 00:50, 23 July 2008 (UTC)