How to keep Open closed Principles between methods where only parameters different.
For example :
interface IDo()
{
void Do(string a)
}
}
Class DoFirst:IDo{}
if we need to extend parameters of the same function (void Do(string a,int b))
How to apply Open Closed Principle?
Thanks in advance
Dhirendra MisraPosted Jan 13, 2014, 5:42 AM
//Main function: How to call it
Hope it will give help you.