Animals (again!)
protected String strName = “”;
protected String strNoise = “”;
// constructors, accessors & modifiers go here
public void identifySelf( ) {
System.out.println(“My name is “ + strName);
public void doYourThing( ) {
So, any object can ask ananimal to identify itself,or do its thing.