Can I use this in constructor?

this() can be used to invoke current class constructor . this can be passed as an argument in the method call. this can be passed as argument in the constructor call. this can be used to return the current class instance from the method.

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 *