diff --git a/src/main/java/com/in28minutes/java/object/constructors/ConstructorExamples.java b/src/main/java/com/in28minutes/java/object/constructors/ConstructorExamples.java index 682143d..04a942f 100644 --- a/src/main/java/com/in28minutes/java/object/constructors/ConstructorExamples.java +++ b/src/main/java/com/in28minutes/java/object/constructors/ConstructorExamples.java @@ -5,7 +5,7 @@ class Animal { public Animal(String name) { this.name = name; - System.out.println("Animal Constructor with name"); + System.out.println("Animal Constructor with name " + name); } }