I have a boolean with the name "Kitchen", one whose name is "House."
In a class Formula1 I have
Kitchen = false;
Room = true;
by default in the constructor. House and Kitchen inherit Room. Although now I wish to make a method
public boolean verifyAuthorization (Room s)
and in this method I would like to know the value of boolean whose name is s.getClass().getName(). Basically if I send him a kitchen, I want to check if the boolean whose name is kitchen is true or false.
Bookmarks