why should constructor have the same name as class name?
nageswararao thambura
constructor means it is automatically executed when ever an object is instantiated for that it takes the class name as constructor name.This is means it is easily identify the method with out object creation.
constructor means it is automatically executed when ever an object is instantiated for that it takes the class name as constructor name. This is means it is easily identify the method with out object creation.