Search:

Type: Posts; User: dan1967

Search: Search took 0.31 seconds.

  1. Replies
    10
    Views
    414

    Re: compiler error regarding method call

    I'm happy you see the problem. Of course in real life nobody would program like that.
    I'm trying to figure it out becuase I'm preparing for java Certification Exam

    Now look at the piece of code...
  2. Replies
    10
    Views
    414

    Re: compiler error regarding method call

    package JavaLibrary1;
    import java.io.*;

    public class Print {
    public Print(){ System.out.println("HELLO");};
    public static void print(Object obj) {System.out.println(obj);}
    ...
  3. Replies
    10
    Views
    414

    Re: compiler error regarding method call

    Hi again,

    I'm just trying to learn about the Java rules regarding shadowing/ name colission.
    I used this program as an example for this. My code in the first post is all the code there is.
    The...
  4. Replies
    10
    Views
    414

    Re: compiler error regarding method call

    I apologize Norm, I renamed my class Derived from my program to class Foo here, so the eror mesaage is the same with Derived replaced by Foo as below:
    Compiling 1 source file to...
  5. Replies
    10
    Views
    414

    Re: compiler error regarding method call

    Hi Norm

    first below I give you the full compiler error message:
    Compiling 1 source file to C:\TIJ4\Problems\Chapter8\Chapter8Ex3\build\classes...
  6. Replies
    10
    Views
    414

    compiler error regarding method call

    Hello everybody !!!


    Given the code below:



    package JavaLibrary1;
    import java.io.*;
Results 1 to 6 of 6