sentence: for example , in the following java class representing a pet , almost all the code is boilerplate except for the declaration of pet , name and owner : public class pet -lcb- private petname name ; private person owner ; public pet ( petname name , person owner ) -lcb- this .