1. What is the output of the following C++ program?

#include <iostream>

class B
{
public:
    virtual int shift(int n = 2) const { return n << 2; }
};

class D
    : public B
{
public:
    D() {}

public:
    int shift(int n = 3) const { return n << 3; }
};

int main()
{
    const D d;
    const B *b = &d;

    std::cout << b->shift() << std::endl;

    return 0;
}