1
Reply

Open Closed Principles

Ilkin Turk

Ilkin Turk

Jan 13 2014 1:47 AM
804
 
 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
 

Answers (1)