Ilkin Turk

Ilkin Turk

  • NA
  • 349
  • 160.9k

Open Closed Principles

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