Can a constructor be call from a constructor?

Yes , any number of constructors can be present in a class and they can be called by another constructor using this() [Please do not confuse this() constructor call with this keyword]. this() or this(args) should be the first line in the constructor. This is known as constructor overloading.

Sizin İçin Seçtik  Can NodeJS be used with Django?

Leave a Reply

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