Hello,
I think you do not need a private method in your code, I do not know your exact need, but if you do not then this may be a solution for you. Just encode method takes the maximum setting, for example, have a look the code.
Code:
Public void method(String pr1, pr2 date, int pr3) {
/ / This method does all the work
// ...
// ...
}
And then the overload with the version "light" settings in which it just to call it:
Code:
Public void method(String pr1, pr2 Date) {
method(pr1, pr2, 0);
}
Public void method(String pr1) {
method(pr1, new Date());
}
Bookmarks