Inharitance

  • Inheritiance diagrams arrows go up!

  • the constructor is the thning that defines all the base things that other functions will define in their house

Virtual functions

  • What is it

    • A function to do run-time polymorphic behaviour
  • Efficientcy and efficasy

    • virtual functios are less efficient as statif functions
    • to invoke a virtual function we

      • base-class pointer to a derived-class object (shapeptrdraw())
      • or shpaeptr.draw();

Polymorphism

  • ITS a WAY TO ASSOCIATE MANY MEANING TO METHOD NAME

Encaspalation