0

I want to create a list of all the names of the classes that Inherited from some super class.

For example: class A, class B extends A, class C extends A, class D. And if I search all the classes that inherited from A I will get a list that contains {B,C}.

How can I do that?

nrofis
  • 8,975
  • 14
  • 58
  • 113

1 Answers1

1

This is a case of wrong assumptions embedded into a question. Java does not have the idea of a finite set of classes that make up a project, so you cannot ask for their subset.

fdreger
  • 12,264
  • 1
  • 36
  • 42