forked from navinreddy20/Javacode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path11.1 Packages.java
More file actions
69 lines (47 loc) · 775 Bytes
/
11.1 Packages.java
File metadata and controls
69 lines (47 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package other.tools;
//package tools;
public class Calc
{
public int add(int n1, int n2)
{
return n1+n2;
}
public int sub(int n1, int n2)
{
return n1-n2;
}
}
package tools;
public class AdvCalc extends Calc
{
public int multi(int n1, int n2)
{
return n1*n2;
}
public int div(int n1, int n2)
{
return n1/n2;
}
}
package other;
public class A
{
}
package com.google.Calculation;
//import tools.Calc;
//import tools.AdvCalc;
//import tools.*;
import other.tools.*;
//import.other.*;
//import java.util.ArrayList;
import java.lang.*;
public class Demo{
public static void main(String args[])
{
// ArrayLis list=new ArrayList();
Calc obj=new Calc();
AdvCalc obj1=new AdvCalc();
A obj2=new A();
System.out.println();
}
}