Answer:
(3) option is the correct answer.
Explanation:
Constructors need to initialize the object in the memory. "To declare the Constructor for any class the user needs to specify the constructor name which is already the class name". This is an object-oriented language guideline.
It is because the object is created by the name of the class and Constructor is used to allocate the memory for the object. hence Constructor is created by the name of the class.
For example--
class test //class name test
{
test() //created a constructor with class name "test"
{
}
}
In the above example class name and constructor name are same if it not then it will gives a error.
Another option is not valid for the answer to the above problem because-