0
class ClassA
{
class NestedA{};
}

class class B extends ClassA.NestedA
{
B(ClassA instanceA)      // non-default constructor
{
instanceA.super();       //1
};
}

I read this code in a book but couldn't understand meaning of line marked 1. I haven't ever come across this type of call to constructor of super type.

user2653926
  • 608
  • 5
  • 22

1 Answers1

1

You should find your answer here

Java syntax is sometimes strage... but after a little bit of practice, you get used to it.

Danix
  • 1,907
  • 1
  • 12
  • 17