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

Sizin İçin Seçtik  Is local class function in Java?

Leave a Reply

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