-2

I am reading about classes in Python and encountered the following statement:

In C++ terminology, normally class members (including the data members) are public (except see below Private Variables), and all member functions are virtual.

I have never heard this, is it true? I tried doing some research, but I only found articles explaining when to make a function virtual and what virtual means.

1 Answers1

2

This is a statement about python. It is saying to a person who knows C++, that python classes have public members and virtual functions.

So the statement is true, but slightly out of context.

mksteve
  • 12,218
  • 3
  • 25
  • 48