If I have an object of a class which has three variables (say Width, Length, Height):
1 2
CubeClass BoxA(20, 10, 15);
//...
What I want to do is 'if BoxA's Height is > 5, this..', but I have no idea how. If this were an array, I could just do a for loop then 'if array[i] == x, this..', but that's obviously not possible here.
This is probably a dumb question - I'm still getting the hang of Classes. Thanks in advance!