architecture - OO: Can an interface implement another interface? -


i know language-specific, possible in oo-languages interfaces implement other interfaces?

in c# can do:

interface yourinterface: idisposable {    /// methods } 

and class wich implements yourinterface shall implement idisposable's method.

of course, valid:

yourinterface implementation = new implementation(); idiposable disposable = implementation; 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -