The default constructor is a type of constructor that is automatically called when the programmer has not defined any constructors in…