Class inheritance in Dynamics 365 for Finance and Operations

ClassA
{
public void print()
{
print “ClassA”;
}
public void printClassA()
{
print “ClassA”;
}
}

ClassB extends ClassA
{
public void print()
{
print “ClassB”;
super();
}
public void print(str _printMessage)
{
print _printMessage;
}
public void printVal(str _printMessage)
{
print _printMessage;
}

public static void main()
{
    ClassB obj = new ClassB();
    obj.print("Print this message");
    obj.printClassA("Local method");
}

}

Overloading – Polymorphism
Overriding – Inheritance