Computers and Technology

Consider the following classes and object obj. class Base {
private:
int x;
protected:
int y;
public:
int z;
Base();
};
class Derived : public Base {
public:
Derived();
};
Derived obj;

a. z only
b. y and z
c. x, y, and z

1. An implementation of constructor Base() can have access to member variables

2. An implementation of constructor Derived() can have access to member variables

3. Object obj can directly access

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:40, silviamgarcia
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
image
Computers and Technology, 22.06.2019 16:30, aryal191
Primary tech skills are skills that are necessary for success in online education
Answers: 3
image
Computers and Technology, 23.06.2019 06:20, Ab20600
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, Zieken993
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
Do you know the correct answer?
Consider the following classes and object obj. class Base {
private:
int x;
prote...

Questions in other subjects: