If privat method of superclass cannot be overriden then why doe ste follwoing code compile?
* @author Hemal Mehta
* @version 1.0
*/
package swing3;
class Scope1
{
Scope1() { print();}
private void print(){System.out.println("A");}}
public class Scope extends Scope1
{
int i = Math.round(3.5f);
void print() {System.out.println(i); }
public static void main(
String args[])
{
Scope1 a = new Scope();
}
}