User Profile
Collapse
-
Suppose method1() is not there. my main problem is -how to use the method2() in the class c without putting any change in class A and class B.... -
how can i access an abstact class method if i extends its sub class
I have a topic to discuss..
how can i access a implemeted method of an abstract class if my class exteds that abstract class's sub class?
Eg:
abstract class A
{
abstract method1();
public void method2()
{
System.out.prin tln("This is from abstract class A");
}
...
No activity results to display
Show More
Leave a comment: