GiJeet (1) [Avatar] Offline
#1
PhotoAlbum : Collection<Photograph>, IDisposable Why is New not used ??
In the PhotoAlbum class is an Add Method like so:
public Photograph Add(string fileName)
{
Photograph p = new Photograph(fileName);
base.Add(p);
return p;
}
this method calls back to base. I wish to know why we do not have to use the New keyword to hide the base method? If the derived class and base class have the same name we need to hide the base or we get a warning message.

TIA
G