oop - Special name for first non abstract virtual method without code? -
this questions comes similar question. have deal case.
do know if exist special name in object oriented programming, initial method has been declared virtual
, intentionally not abstract
, but, nothing, or not have code @ all, but, maybe called ?
this example pseudocode, but, applies o.o. programming language:
public class mybaseclass { public abstract virtual void overrideme(); public virtual void dosomething() { cout << "hello mars\n" } public virtual void maydosomething() { /* nothing, yet */ } } public class myderivedclass : mybaseclass { public override void overrideme() { cout << "hello neptune\n" } public override void dosomething() { cout << "hello jupiter\n" } public override void maydosomething() { cout << "hello venus\n" } }
the method mybaseclass::maydosomething()
case.
cheers.
i don't know name in general, i've heard various names techniques use kind of method. depends on specific use.
the general name can think of nop method!
Comments
Post a Comment