A
Ah Ming
Dear all,
The following two cases are showing "same" method. If aMethod are
defined as public and private, how can I implement it? At the same
time, if both aMethod are public, how can I do? What is the
difference when they are public or they are public and private?
Kai Ming
CASE 1:
class ABC {
public int aMethod(int a) {
......
}
private void aMethod(int a) {
......
}
}
CASE 2:
class ABC {
public int aMethod(int a) {
......
}
public void aMethod(int a) {
......
}
}
The following two cases are showing "same" method. If aMethod are
defined as public and private, how can I implement it? At the same
time, if both aMethod are public, how can I do? What is the
difference when they are public or they are public and private?
Kai Ming
CASE 1:
class ABC {
public int aMethod(int a) {
......
}
private void aMethod(int a) {
......
}
}
CASE 2:
class ABC {
public int aMethod(int a) {
......
}
public void aMethod(int a) {
......
}
}