Q:

Does the code get copied to derived class?

Whenever I derive a new class from base class say:
#include <iostream>

class A {

protected:
     int f;

public:

    void get() {
        std::cout << "The address is: "
        << &f << std::endl;
        }
};

class B : public A {
        // ....
};

int main() {

     A a;
     a.get();

     B b;
     b.get();

     return 0;
}

The address is: 0xbfb0d5b8
  The address is: 0xbfb0d5bc

Does this means that all the code from class A will be copied to class B? Since I have nothing in class B i.e. no data members or functions So, when I create an instance of class B, then I find that it has its own variable at different address and it also has a member function. How can it have its own of copy members if it they aren't copied?
Is that what do we mean by code reuse in inheritance?
Edit:
Updated my code to reflect what I meant by copying of variables.

A:

Code is never copied during inheritance. But when the child object (class B) is created  or instantiated at run time, it inherits the functionality and attributes of the parent class/object (class A).

