Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass1 {
- void doit()
- {
- System.out.println("doit");
- }
- }
- class MyClass2{
- int x=1;
- MyClass2(int x)
- {
- this.x = x;
- }
- void doit()
- {
- System.out.println("doit"+x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement