• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile time errors

 
Venkat Ramsimha
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class Foo {
public void doStuff(int y, String s) { }
public void moreThings(int x) { }
}
class Bar extends Foo {
public void doStuff(int y, float s) throws IOException { }
}

Hi all,
the above program is giving compile time errors can anybody please correct the above


thanks
venkat
 
deepu Bhalotia
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Overloading Overloaded method in Subclass can throw any Exception.

I think this code is totally valid and should n't throw any compile time error.

Can you just provide me.. What is the Error Message....


Deepak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic