i have a one method in the base class like method1()
so again i need to create the method1() with same name as in base class,
in derived class we use the new keyword to hide the old method in the base class
whenever we use new keyword to create object then automatically memory will be allotted for the data fields and default values are stored into data fields.
ex:employee obj1=new employee();
if we cannot use new keyword then memory will not be allotted to the data fields and object will maintenance the null references.
employee obj1=employee();