Tuesday, October 20, 2015

Question

Assuming the same file system as before, consider a scenario consisting of selecting a File in a folder, right clicking on the mouse, and renaming the file. Identify and define at least one control object associated with this scenario.

Answer

The purpose of a control object is to encapsulate the behavior associated with a user level transaction. In this example, we identify a CopyFile control object, which is responsible for remembering the path of the original file, the path of the destination folder, checking if the file can be copied (access control and disk space), and to initiate the file Copying.

Tagged: ,

0 comments:

Post a Comment

Zul Ameen Blog © 2013 | Powered by Blogger | Blogger Template by DesignCart.org