+ 1
Whats the error coders,I am new to this
4 Answers
+ 4
because Demo is inner (non-static) class
on create object you have to first specify object where demo class is
Demo ref = ref1.new Demo();
edit: code was then changed to 3 separated classes
+ 2
You're inheriting and nesting the class at the same time?
0
Thanks zemiak
0
Nick i forgot to create class for main