Can constructor be empty?

The body of the constructor is defined inside the curly brackets { } after the parameter list. In the constructor example above the constructor has no operations inside the constructor body. It is said to be an “empty” constructor .

Sizin İçin Seçtik  What is a constructor of a class?

Leave a Reply

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