JavaExamples/src/main/java/com/mblinn/oo/nullobject/PersonExample.java
// Code to add/remove people
Code to add/remove people
Code to add / remove people
public Person buildPerson(String firstName, String lastName){
		if(null != firstName && null != lastName)
			return new RealPerson(firstName, lastName);
		else
			return new NullPerson();
	}
public Person buildPerson ( String firstName , String lastName ) { if ( null != firstName && null != lastName ) return new RealPerson ( firstName , lastName ) ; else return new NullPerson ( ) ; }
Code to add/remove people
Code to add / remove people