Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

why do I get this error-message:cannot find symbol symbol : constructor Person() location: class Personliste.Person Person forsteperson = new Person( null); this is part of my program, hope it helps.. class Personliste{ Person forsteperson; int teller; public Personliste() { Person forsteperson = new Person( null); teller = 0;} public class Person { Person neste; private String navn; public Person(String navn, Person neste) { this.navn=navn; this.neste=neste}}

OpenStudy (anonymous):

I think you are missing a constructor or something.

OpenStudy (anonymous):

its not about the constructor rather the variable has been out of scope...please declare it globally or declare above the present place so that it is available

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!