Suppose class stringGetter contains exactly one pure virtual function: the overloaded paren- theses operator, string operator()(int x). Also suppose that class getPageString is a public stringGetter that implements operator().
Which of the following C++ statements will certainly result in a compiler error?
(a) stringGetter * a = new stringGetter;
(b) stringGetter * a = new getPageString;
(c) stringGetter * a;
getPageString * b = new getPageString;
a=b
(d) Exactly two of these will result in a compiler error.
(e) It is possible that none of these will result in a compiler error.
I'm a little fuzzy on abstract base classes, and I cant find good example cases online that do assignments like the ones below. I like asking questions on here about this kind of stuff, as I often learn more about things I wasnt even intending on learning. I cant even begin to make a guess on which of these would cause a compiler error. Can anyone go through a-c and tell me why or why not it would cause a compiler error?