S
sujee
abstract class A{
//implemented methods
void test1(){System.out.println("test1: A");}
//abstract methods
abstract void test2();
}
class B extends A{
void test1(){System.out.println("test1: B");}
void test2(){System.out.println("test2: B");}
public static void main(String args[]){
B ins =new B();
ins.test1();
ins.test2();
}
}
I want to access the method test1() in the abstract class?? how can i?
//implemented methods
void test1(){System.out.println("test1: A");}
//abstract methods
abstract void test2();
}
class B extends A{
void test1(){System.out.println("test1: B");}
void test2(){System.out.println("test2: B");}
public static void main(String args[]){
B ins =new B();
ins.test1();
ins.test2();
}
}
I want to access the method test1() in the abstract class?? how can i?