Is it possible define method with in a method ?
for eg:
int dis(int a)
{
String d ;
float foo() {
}
}
Printable View
Is it possible define method with in a method ?
for eg:
int dis(int a)
{
String d ;
float foo() {
}
}
I think it is not possible in Java.
There could be a function call within the definition of another function but not a function definition. :D
this is possible in c++, but not sure about java
hi
it's not possible to define method inside method..
java doesn't support inner metods