Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a) explain what is happening when toString() is called for each of the objects through the printFileSyatem() method b) explain how the searchSize() method has
a) explain what is happening when toString() is called for each of the objects through the printFileSyatem() method
b) explain how the searchSize() method has been implemented and what aspect of OOP enables this
Using your knowledge of OOP, design and implement the classes described above. Specific Requirements: You should submit 5 Java files: GenericFile.java, Word.java, Video.java. FileSystem.java and TestFile System.java Your FileSystem class is in charge of maintaining the objects (i.e. the GenericFiles). The FileSystem constructor should take an int which specifies the number of files the FileSystem can hold, and should provide the following publicly accessible methods: public boolean createFile(String filestring); The boolean will indicate whether the file was successfully created. Returns false if the File System is full or if there is a duplicate file name fileString will come in the following format: GFILEStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started