问题,请高手指教# JobHunting - 待字闺中
P*b
1 楼
Design desktop gui. On gui, there is “program”, “folder”, “printer”,
“garbage can”, “file”, we can drag each one to another one. But some are
legal, some are not. E.g., when we drag file into printer, it is legal, and
printer will print file out. When we drag a folder into printer, it is also
legal, printer will print out all the files in the folder(could be
recursive). But some operations are illegal, e.g., when we drag "garbage can
" to printer, there should error message or exception sent out.
Hint: don’t use static binding e.g., ID, but use dynamic binding and
polymorphisms.
“garbage can”, “file”, we can drag each one to another one. But some are
legal, some are not. E.g., when we drag file into printer, it is legal, and
printer will print file out. When we drag a folder into printer, it is also
legal, printer will print out all the files in the folder(could be
recursive). But some operations are illegal, e.g., when we drag "garbage can
" to printer, there should error message or exception sent out.
Hint: don’t use static binding e.g., ID, but use dynamic binding and
polymorphisms.