import java.io.*; public class Species extends Object implements Serializable { protected String name; protected int population; //------------------------------------------------------------------- // Species constructor //------------------------------------------------------------------- public Species (String name, int population) { this.population = population; this.name = name; } //------------------------------------------------------------------- // A dummy method so that we can highlight the difference between // binary compatibility and serialization stream compatibility. //------------------------------------------------------------------- public void someMethod(int x) { ; } //------------------------------------------------------------------- // Overridden Object.toString() //------------------------------------------------------------------- public String toString() { return name +" , Population: "+ population; } } // End of Class Species