I have some function in java and i want this function to have a parameter with a default value that is set to variable if no value sent, look like following:
private void test(int count=5)
{
}
So i can call the function with 2 ways:test();
and test(10);
how do i do it?
No comments:
Post a Comment