What happens when constructor is private?

If a constructor is declared as private, then its objects are only accessible from within the declared class . You cannot access its objects from outside the constructor class.

Sizin İçin Seçtik  Should CB be on AM or FM?

Leave a Reply

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

What happens when constructor is private?

If a constructor is declared as private, then its objects are only accessible from within the declared class . You cannot access its objects from outside the constructor class.

Sizin İçin Seçtik  What must the constructors be named?

Leave a Reply

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