-2

I have seen this many times and I can't describe it well enough to google search it:

What is the difference between "Foo" and "Bar" in the following code sample?

class Base {
public:
    Base(){}
    ~Base(){}
};

class Foo : Base {

};

class Bar : public Base {

};

What is this distinction called?

Dmytro
  • 5,068
  • 4
  • 39
  • 50

1 Answers1

-1

Duplicate of Difference between private, public, and protected inheritance

The answer is that it is called "public base class".

Community
  • 1
  • 1
Dmytro
  • 5,068
  • 4
  • 39
  • 50