Consider the following, only program body, syntax not correct:

```
class super
{
  func1();//the method which is to be be overridden
}
class sub1 extends super
{
  func1();
}
class sub2 extends sub1
{
  func1();
}

class Main
{
  main()
}

```