class Noise {
void makeNoise() {
System.out.println("This is Noise");
}
class LessNoise extends Noise {
void makeNoise() {
System.out.println("This is LessNoise");
}
void other() {
System.out.println("This is a other method in Less Noise");
}
}
}
class Casting {
public static void main(String[] args) {
****** Noise [] a= {new Noise() , new LessNoise(), new Noise() };
}
}
I was trying reference casting.But in star marked line i m getting error that
Multiple markers at this line
- LessNoise cannot be resolved to a type
- TODO Auto-generated method stub
- Line breakpoint:Casting [line: 20] - main
i couldn't able to resolve this error.Anyone help???