Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Not sure how to awnser this c++ question 15) class genClass { .................. virtual void process1(char); virtual void process2(char); }; class derivedClass : public genClass

Not sure how to awnser this c++ question

15)

class genClass { .................. virtual void process1(char); virtual void process2(char); };

class derivedClass : public genClass { .................. void process1(int); int process2(char); };

Which member functions are invoked if the declaration of two pointers genClass *objectPtr1 = &derivedObject, *objectPtr2 = &derivedObject;

is followed by these statements? objectPtr1->process1(1000); objectPtr2->process2('A');

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions