Question: In java language answer these problems with fully working codes. The pictures below are the client files that I was given for the questions 60,61,62.
all the methous lll statistics, assumi 60. Write a class encapsulating the concept of website stat ber of visitors and ing website statistics have the following attributes: number type of site (commercial, government, etc.). Include a accessors and mutators, and methods toString and equa ls. Write a client class to test all the methods in your class. 61. Write a class encapsulating the concept of a corp example, "IBM"), assuming a corporate name has only one the corporate name itself. Include a constructor, tbute mutators, and methods toString and equals. Also include a method returning a potential domain name by adding www. at the be and .com at the end of the corporate name (for instance, if the rate name is IBM, that method should return www.ibm.com). Wirit client class to test all the methods in your class. attribu eginnin 62. Write a class encapsulating the concept of a file, assuming a file has only a single attribute: the name of the file. Include a constructor, th accessors and mutators, and methods toString and equals. Also, code a method returning the extension of the file, that is, the letters after the last dot in the file (for instance, if the file name is Test.java, then the method should return java); if there is no dot in the file name, then the method should return "unkson extension." Write a client class to test all the methods in your clas
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
