Duplicate of Disabling inherited method on derived class
This is my class codes:
class Parent{
public bool sum(int a){return true;}
public int mul(int a){return a*a;}
}
and two another classes that extends parent class:
class derived extend parent{
//here this child can see two methods of parent class and
//I want just see sum method in here and don't see mul method
}
class derivedb extend parent{
//here this child can see two methods of parent class and
//I want here just see mul method.
}