Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
package
OverloadOverride
;
public
class
MainClass
{
public
static
void
main
(
String
[
]
args
)
{
MyClass t
=
new
MyClass
(
0
)
;
t.
info
(
)
;
t.
info
(
"overloaded method"
)
;
//Overloaded constructor:
new
MyClass
(
)
;
}
}