Constructors are special methods within classes that are used to initialize objects when they are created. They have the same name as the class and are called automatically when an object is instantiated.
congrats on reading the definition of Constructors. now let's actually learn it.
Instance Variables: Instance variables are attributes or properties associated with objects of a class. They hold unique values for each instance/object.
Default Constructor: A default constructor is a constructor that takes no arguments and provides default values for instance variables if not explicitly initialized.
Parameterized Constructor: A parameterized constructor is a constructor that accepts parameters/arguments during object creation and uses those values to initialize instance variables.