class Test1
{
public void method1()
{
System.out.println("super class method");
}
}
class mura extends Test1
{
public static void main(
String args[])
{
Test1 t2= new Test1();
t2.method1();
}
void method1()
{
System.out.println("subclass method");
}
}
Here i am getting compiler error saying
mura.java:17: method1() in mura cannot override method1() in Test1; attempting to assign weaker access privileges; was public void method1()
Plz explain this.
Bye
Muralee
^