Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,180

    Re: toString problem

    If you want to use the Contact toString() method in a subclass, you can do something like this:


    // AddPersonalContact subclass of Contact class
    public String toString()
    {
    // Use the...
  2. Replies
    6
    Views
    1,180

    Re: toString problem

    Well I was guessing. Now I am guessing that my guess was wrong.

    If you want more, you have to give more.

    Here is my suggestion: Post enough code so that we can compile it and then maybe we...
  3. Replies
    6
    Views
    1,180

    Re: toString problem

    If you are calling a function in the same class as your static void main(), you probably don't have an object, so the function must be static:


    public class Z
    {
    public static void...
Results 1 to 3 of 4