Basic Java Questions
<p>Hi guys Could you please be kind enough to answer one ore more of these questions? Thanks so much!</p>

<p>Q1. Lets say I initialize an array of "Class A" objects", Can I Also put Class B objects(a subclass of Class A) in the same array. Or do I have to upcast the reference type of Object B to become a class A reference type?</p>

<p>Q2.Can I redefine public methods to be private in a subclass? </p>

<p>Q3.So I understand that if I want to access my superclass' private instance variables I need to use its accessor methods. This is slightly irritating because it doesn't comply with biological inheritance. Why is this the case? Why cant we just treat the private instance variables or private methods of its superclass like it were its own instance variables (what biological inheritance promises)? </p>

<p>Thanks so much!
Regards John.</p>
