Skip to content

Commit 0ab18d4

Browse files
author
anurag03
committed
making some changes
1 parent d834d93 commit 0ab18d4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Pet.class

726 Bytes
Binary file not shown.

Pet.java

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public class Pet{
2+
int number;
3+
public void pet(){
4+
number = 2;
5+
}
6+
public static void main(String args []){
7+
Pet b = new Pet();
8+
b.pet();
9+
System.out.println(""+ b.number);
10+
11+
}
12+
}

0 commit comments

Comments
 (0)