Which of the following is a method having same name as that of it’s class?
Which of the following is a method having same name as that of it’s class? Correct Answer constructor
A constructor is a method that initializes an object immediately upon creation. It has the same name as that of class in which it resides.
মোঃ আরিফুল ইসলাম
Feb 20, 2025