i have a base class lets call it as BaseDatabaseOperationClass
public abstract class BaseDatabaseOperationClass
{
public virtual void Insert(int id,int name)
{
//make insertion bla bla
}
}
and there are many child classes. But in one of them i have extra method and the story starts here.
public class ChildClass : BaseDatabaseOperationClass
{
public void DifferentInsert(int id,int name)
{
//make some controls add some extra things bla bla
//changes id and name
base.Insert(id,name);
}
}
but now i do not want that any instance of ChildClass can use the Insert method. Basically i want to change the access modifier of the Insert method of BaseDatabaseOperationClass by overriding it in ChildClass. But i know it is not allowed. So what should i do?