Is constructor overloading possible for static class?

A class or struct can only have one static constructor. Static constructors cannot be inherited or overloaded . A static constructor cannot be called directly and is only meant to be called by the common language runtime (CLR). It is invoked automatically.

Sizin İçin Seçtik  What is the purpose of using constructor in Java?

Leave a Reply

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

Is constructor overloading possible for static class?

A class or struct can only have one static constructor. Static constructors cannot be inherited or overloaded . A static constructor cannot be called directly and is only meant to be called by the common language runtime (CLR). It is invoked automatically.

Sizin İçin Seçtik  Why do we need no arg constructor?

Leave a Reply

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