what is the output? Find all the errors in the following code, and describe how to fix each error. You can assume that the constructors and member functions are defined elsewhere and they do not have...


what is the output?<br>Find all the errors in the following code, and describe how to fix each error. You can<br>assume that the constructors and member functions are defined elsewhere and<br>they do not have any errors.<br>class Base {<br>public:<br>Base(string) const;<br>virtual void printX() const = 0;<br>private:<br>string x;<br>}3;<br>class Derived : public Base {<br>public:<br>Derived(string, int) const;<br>virtual void printY() const;<br>private:<br>int y:<br>}:<br>int main() {<br>Derived obj{

Extracted text: what is the output? Find all the errors in the following code, and describe how to fix each error. You can assume that the constructors and member functions are defined elsewhere and they do not have any errors. class Base { public: Base(string) const; virtual void printX() const = 0; private: string x; }3; class Derived : public Base { public: Derived(string, int) const; virtual void printY() const; private: int y: }: int main() { Derived obj{ "abc", 2 }; cout < "x="" is:=""><>< endl;="" cout="">< "y="" is:=""><>< endl;="" }="" 11="">

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here