my problems not that huge...for example,,
if i use inheritence... i create

static newstudent current;

in public class EnterSP and i write

public class Backstroke extends EnterSP

does current work in the Backstroke class?


coz...ive got null pointer exception...
i need help ASAP...

or maybe if anyone could have a look at my codes?

If you have declared the static newstudent current; as private then you can not use it in the derived class. But if you have declared it protected then u can use it
.

If you have declared the static newstudent current; as private then you can not use it in the derived class. But if you have declared it protected then u can use it
.

thanks....but its abit too late...my program is due in like 1 more hour?...hehe
thanks anyway!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.