Problem uml diagram uml class diagram problem class
Problem 1 (UML Diagram)
Method overloading means two or more methods within the same class that share the same name, as long as their parameter declarations are different
public String getData(String s) and public int getData(int i) are the different data type parameters and return type. It has no error
String data="Hello";
Integer value=10;
public String getData() {
return data;
return value;
}
public static void main(String[] args)
{
}
}