|
|
|
|
|
|
public void testOverloads()
|
|
{
|
|
Irishman
paddy = new Irishman();
|
|
Scotsman
angus = new Scotsman();
|
|
System.out.
|
|
println("-->
testOverloads()...");
|
paddy.imbibe(new
IrishWhiskey());
|
|
paddy.imbibe(new
ScotchWhiskey());
|
|
angus.imbibe(new
IrishWhiskey());
|
|
angus.imbibe(new
ScotchWhiskey());
|
|
}
|
|