First of all, I know that the std::string
class has all the functions I could possibly need. This is just for testing purposes to see what I'd be able to do in the future.
Anyway, say I had this:
class MyString : public std::string { }
How would I then, for example, use:
MyString varName = "whatever";
because surely I'd get an error because "whatever" is a std::string not a member of the MyString class?
If you understand what I mean, how would I fix this?
(and by the way, I know this is probably a really silly question, but I am curious)