Dog fido = new Dalmatian();
int spots = ((Dalmatian)fido).spotCount();