Chapter 1 Object-Oriented Concepts A class consists of variables called fields together with functions called methods that act on those fields. Let¶s look at the String…