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...
Type: Posts; User: Zaphod_b
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...
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...
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...