Overriding question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sathya110
    New Member
    • Apr 2008
    • 1

    Overriding question

    Hi,

    My code is in this way:

    base()
    {
    abc()
    {
    virtual void def();
    }
    }
    derived:base()
    {
    abc()
    virtual void def();
    }

    My question here is I want to know which def would be called when it encounters the abc() function in the base class.
  • questionit
    Contributor
    • Feb 2007
    • 553

    #2
    Originally posted by sathya110
    Hi,

    My code is in this way:

    base()
    {
    abc()
    {
    virtual void def();
    }
    }
    derived:base()
    {
    abc()
    virtual void def();
    }

    My question here is I want to know which def would be called when it encounters the abc() function in the base class.
    Did you try to run your program? What was the result?


    Rgds
    Qi

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      I don't see any classes here.

      Comment

      Working...