What is parameterized and non parameterized constructor in Java?

Constructor types: No-Arg Constructor – a constructor that does not accept any arguments. Parameterized constructor – a constructor that accepts arguments . Default Constructor – a constructor that is automatically created by the Java compiler if it is not explicitly defined.

Sizin İçin Seçtik  How do you create an instance of a class in Python?

Leave a Reply

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