Can an anonymous class have constructors?

Since they have no name, we can’t extend them. For the same reason, anonymous classes cannot have explicitly declared constructors .3 May 2020

Leave a Reply

Your email address will not be published. Required fields are marked *