Create a class File with fields: name (string), size (in bytes, integer), directory (string). Create a constructor and a method of calculation size (in Mbytes, double). Create also a method of moving file to trash folder (that is, changing directory to value “Trash”). Create a method Info that returns information about the file (string).
Create a derived class Document with an additional field: program name to handle this file (string, f.e. MS Word, MS Excel, C++Builder). Create a constructor and a method Info with additional data. Create a method of changing program association (that is changing of program name).
Create a derived class Document with an additional field: program name to handle this file (string, f.e. MS Word, MS Excel, C++Builder). Create a constructor and a method Info with additional data. Create a method of changing program association (that is changing of program name).
Comment