Null object pattern: Difference between revisions

Content deleted Content added
m fixed dashes using a script
Line 363:
public class NullAnimal implements Animal {
public void makeSound() {
// silence...
 
}
}