Answer:
None of the mentioned options
Explanation:
- If we define a method in a derived class with same declaration type as that of base class then it is said to be overriding a function which behaves differently which will depend on the object which is calling the method.
- Option a,b and c are not any kind of methods we implement using coding.
- Option d is done when number or data types of parameters are different than the declaration of the base type.
Answer: It’s Letter (B) the other ones just don’t fit.
Explanation:
Mark me as brainlest please?!!
<u>Solution and Explanation:</u>
//Header files
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
int main()
{
fstream fin;
char str[]="";
string question;
char filename[20];
char choice;
string answer;
//seed for random number
unsigned seed=0;
srand(seed);
cout<<"Enter your file name : ";
cin>>filename;
cout<<endl;
//if file not exist then gives message
//reading file
do
{
fin.open(filename,ios::in);
if(!fin)
{
cout<<"couldnot find the file...";
std::system("pause");
return 0;
}
while(!fin.fail())
{
cout<<endl<<"Enter your quesion"<<endl;
fflush(stdin);
getline(cin,question);
answer="";
char ch;
while((ch=fin.get())!='\n'&&!fin.fail())
{
//reading line
answer+=ch;
if(ch=='#')
{
int randNum=1+rand()%18;
answer +=randNum+'0';
ch=fin.get();
}
}
cout<<answer<<endl;
}
fin.close();
cout<<"Do you want to continue (Y/y to continue) :";
cin>>choice;
}while(choice=='y'||choice=='Y');
//To pause the output
system("pause");
return 0;
}//end of main..
Internet maybe?
Not 100% sure though
If someone who wants to
acquire a compact disc (CD) has just sufficient money to buy one, and chooses
CD a instead of CD b, then CD B is the opportunity cost.
To add, opportunity cost. <span>the loss
of potential gain from other alternatives when one alternative is chosen.</span>