jiazy0125 Posted September 12, 2018 Report Share Posted September 12, 2018 Now, there are two class A & B, B is inherits from A. All methods in B are static. And the question is that how to get the parent class value by B or how to find the parent class which B inherited. Quote Link to comment
Neil Pate Posted September 12, 2018 Report Share Posted September 12, 2018 (edited) You cannot directly access the parent class from a child, you have to use accessor methods of the parent. Regarding your second question, why do you need to know the parent? Edited September 12, 2018 by Neil Pate Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.