Click here to Skip to main content
15,890,185 members
Home / Discussions / Java
   

Java

 
QuestionAdding text to an existing file or create it if not existant Pin
Matjaz-xyz1-Jun-11 21:11
Matjaz-xyz1-Jun-11 21:11 
AnswerRe: Adding text to an existing file or create it if not existant Pin
TorstenH.2-Jun-11 12:59
TorstenH.2-Jun-11 12:59 
AnswerRe: Adding text to an existing file or create it if not existant Pin
lanmingle5-Jun-11 0:03
lanmingle5-Jun-11 0:03 
QuestionSelecting between base class and interface method... Pin
faheemnadeem29-May-11 8:01
faheemnadeem29-May-11 8:01 
AnswerRe: Selecting between base class and interface method... Pin
Luc Pattyn29-May-11 8:40
sitebuilderLuc Pattyn29-May-11 8:40 
GeneralRe: Selecting between base class and interface method... Pin
faheemnadeem29-May-11 9:04
faheemnadeem29-May-11 9:04 
GeneralRe: Selecting between base class and interface method... Pin
faheemnadeem29-May-11 9:05
faheemnadeem29-May-11 9:05 
AnswerRe: Selecting between base class and interface method... Pin
Luc Pattyn29-May-11 9:11
sitebuilderLuc Pattyn29-May-11 9:11 
you should read the error message carefully, it is meant to tell you what is wrong. And if you can't figure it out, don't tell us there is "an error", give the detailed error message.

The clue is in the first answer at SO, basically in
void IControl.Paint()
{
    System.Console.WriteLine("IControl.Paint");
}
void ISurface.Paint()
{
    System.Console.WriteLine("ISurface.Paint");
}

you see the interface name is prefixed to the method name, that is how they get discriminatated when defining them, and if necessary also when calling one of them (it would be necessary if the "signature", i.e. the list of argument types, is the same and hence not telling the methods apart; the method matching is based on method name and parameter list, and NOT on the return type.

If you are convinced you need all this, and it is beyond your current knowledge of the language, my best advice for you is to choose, buy and study an introductory book on Java. That will teach you all the basics, in a consistent and speedy way.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.3

GeneralRe: Selecting between base class and interface method... Pin
faheemnadeem29-May-11 9:26
faheemnadeem29-May-11 9:26 
AnswerRe: Selecting between base class and interface method... Pin
Luc Pattyn29-May-11 9:34
sitebuilderLuc Pattyn29-May-11 9:34 
GeneralRe: Selecting between base class and interface method... Pin
jschell29-May-11 9:23
jschell29-May-11 9:23 
GeneralRe: Selecting between base class and interface method... Pin
faheemnadeem29-May-11 10:12
faheemnadeem29-May-11 10:12 
GeneralRe: Selecting between base class and interface method... Pin
jschell30-May-11 5:50
jschell30-May-11 5:50 
QuestionImgien Pin
lmgien26-May-11 7:06
lmgien26-May-11 7:06 
JokeRe: Imgien Pin
Gerben Jongerius26-May-11 20:03
Gerben Jongerius26-May-11 20:03 
AnswerRe: Imgien Pin
TorstenH.27-May-11 1:24
TorstenH.27-May-11 1:24 
AnswerRe: Imgien Pin
Thomas Krojer29-May-11 21:53
Thomas Krojer29-May-11 21:53 
AnswerRe: Imgien Pin
Luc Pattyn29-May-11 23:32
sitebuilderLuc Pattyn29-May-11 23:32 
Question**help** Pin
moein136825-May-11 17:39
moein136825-May-11 17:39 
AnswerRe: **help** Pin
David Skelly25-May-11 21:56
David Skelly25-May-11 21:56 
AnswerRe: **help** Pin
Richard MacCutchan25-May-11 22:54
mveRichard MacCutchan25-May-11 22:54 
Questionno main class found Pin
DominoBoy25-May-11 8:14
DominoBoy25-May-11 8:14 
AnswerRe: no main class found PinPopular
Richard MacCutchan25-May-11 10:11
mveRichard MacCutchan25-May-11 10:11 
QuestionContent Based Image Retrieval with java Pin
hendrik.sps22-May-11 0:18
hendrik.sps22-May-11 0:18 
AnswerRe: Content Based Image Retrieval with java Pin
Richard MacCutchan22-May-11 1:41
mveRichard MacCutchan22-May-11 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.