Here is the code,
A foo(A a)
In my understanding, virtual function should always be public because virtual functions are interface so obviously they should be accessible to...
As we know member function data() defined by string won't append a NULL character at the end of string. But I found it still appends a NULL...
Separate names with a comma.