Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class overloadtute{
- public int area(int width){
- return width * width;
- }
- public String area(String height){
- return height;
- }
- public static void main(String[] args) {
- overloadtute x = (overloadtute) new Object();
- System.out.println(x.area("ff"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment