Port
Port

Reputation: 86

How can I know that one class is a subclass of another one?

qx.Class.define("A")

qx.Class.define("B",
   extend: A
)

I'd like to know that B is a subclass of A. Thanks a lot.

Upvotes: 0

Views: 78

Answers (1)

user625488
user625488

Reputation: 415

Have a look at the API of qx.Class. It has a stastic method isSubClassOf() - I think that's exactly what you want.

Upvotes: 2

Related Questions