Write a class ArtWork that has as private instance variables, the title of the work, the name of its author and the date of publication. The class ArtWork also has a private static variable denoting the number of all the works. The class must define methods to access these variables, a constructor that initializes them and a method toString () to return a string containing the title of the work, the name of the author and the date of publication.