public class Person { // template for pipeline objects private String name; private int height; private int weight; // accessor functions public String getName() {return name;} public void setName(String x){name = x;} public int getHeight() {return height;} public void setHeight(int x) {height = x;} public int getWeight() {return weight;} public void setWeight(int x) {weight = x;} // constructor public Person (String n, int h, int w) { // n = name of person, h = height in inches, w = weight in pounds name=n; height=h; weight=w; } // toString method, so an object can display itself public String toString() { return (name+" weighs "+weight+" pounds and is "+height+" inches tall"); } }