Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ virtual function

class Base {
   public:
    void print() {
        // code
    }
};

class Derived : public Base {
   public:
    void print() {
        // code
    }
};
 
PREVIOUS NEXT
Tagged: #virtual #function
ADD COMMENT
Topic
Name
6+2 =