Posts by Adejair • 1 point
1 post
-
-2
votes1
answer89
viewsQ: Calling a class by the value of a member
I wonder how I could check if the id of an inherited class is equal to a value x. Something like: class X { id = 3; }; ... class Y { id = 4; }; I have a variable any x, how could I check if x is…