I have a superclass
Class A{
method1();
method2();
method3();
}
class B extends A{
//dont need method 1 here;
}
class C extends A{
//all method here
}
class D extends A{
//all method here
}
so how can i exclude method1() from B because its common to C and D.Is there any way to do this in java