Are there answer choices???? I think the answer would be remove them by using the delete button
Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
string in;//string in for taking input...
cout<<"Do you want to continue ?"<<endl;
getline(cin,in);//taking input from the user...
if(in=="y"||in=="Y"||in=="yes"||in=="OK"||in=="Why not?")//conditions..
cout<<"OK"<<endl;
else if(in=="No")
cout<<"terminating"<<endl;
else
cout<<"Bad input"<<endl;
return 0;
}
Explanation:
I have taken a string in.
Then taking input from user.
Checking the conditions using if else if ladder.
<span>I look for small classes to assure personal attention from the professors. I also make sure it has a good program scope for things I am initially interested in. Furthermore, good graduation rates are preferable.</span>
Answer:
Option a is the correct answer for the above question
Explanation:
The derived class is a class that inherits the property of the base class, and he can access the public variable and function or members of the base class or ancestor class.
Option 'a' also states the same and the question asked about the assessment of the derived class. Hence option a is the correct answer while the other is not because:-
- Option b states about the private members, but it is not accessible by the derived class.
- Option c states about the derived class members but it can also access the base class members.
- Option d none of the above, but option a is the correct answer.