interface I
class A implements I
class B extends A
class C extends A
class D extends A
class E extends A
What can I do so that only class D doesnot get the methods of I. I am currently thinking to override all the methods of 'I' in D with no body.
Am I thinking in the right direction or is there a better way?
Edit: D only doesnot want the methods contained in interface I. Rest of A's methods are inherited. A is the base class. interface I is the interface for ordering videos B,C,E are users with different privileges and D is the admin. The admins can not order videos so donot need the methods carried by the interface.