Udemy REST Assured free

What will be the output of below Java code?

Sample Code: 

public  class  A  
{
    public void m1(int ... i)
    {
        System.out.println("Parent class");
    }
}

public class B extends A
{
    public void m1(int i)
    {
        System.out.println("child class");
	}
}

class C
{
    public static void main(String[] args)
    {
        A a = new A();
        a.m1(10);

        B b=new B();
        b.m1(10);

        A a1=new B();
        a1.m1(10);
    }
}

Output:

Parent class

child class

Parent class