for your example so that it looks better?
change
//other code
Child child= new Child("Mark");
child.smile();
// other code, we assume we have a class Child defined somewhere else
to
//other code
Child realChild= new Child("Mark");
realChild.smile();
// other code, we assume we have a class Child defined somewhere else
change
//other code
Child child= new Child("Mark");
child.smile();
// other code, we assume we have a class Child defined somewhere else
to
//other code
Child realChild= new Child("Mark");
realChild.smile();
// other code, we assume we have a class Child defined somewhere else