Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

My 2 Cents How To Invoke The Constructor

Discussion in 'General Programming Discussions' started by Swati Mishra, Mar 16, 2016.

  1. Swati Mishra

    Yellow Belt

    Joined:
    Dec 28, 2015
    Messages:
    644
    Ratings:
    +105 / -0
    When we use the multiple inheritance, then the constructor invoke in some order which is describe below.
    • Virtual base class constructor invoke in order of inheritance.
    • Non-virtual base class constructor invoke in order of inheritance.
    • Member objects constructor invoke in order of declaration.
    • Derived class constructor
     

Share This Page