Inherit function?

  • Thread starter Thread starter RedHair
  • Start date Start date
R

RedHair

There are 4 func A,B,C,D in a class, all the func A,B,C will need to call
the func D in their first line, is there any way simliar to class inhertance
then
I don't need to add func D inside each func and also able to execute it as
below?

Function A()
{
Function D();
}

Function B()
{
Function D();
}

Function C()
{
Function D();
}
 
Unfortunately no, because in UML (Object Oriented Modeling) there are no
relations between methods within the same class
 
Back
Top