Java Interview Question

Use this basic question and answer to prepare for your next Java interview.

Can a base-type access properties in its sub-types?


When a class is inherited, the base type can have properties shared by all sub-types, and each sub-type can have their specific properties. The sub-type properties cannot be accessed by other sub-types of the same Generic object or even in the base-type.

Looking for developers?

Want to learn more about Gigster? Enter your email and we'll be in touch.