Answer: I dont really know but im guessing it depends on the type of assignment you have. im thinking True.
Explanation:
Answer:
#include <iostream>
using namespace std;
class Str{ ///baseclass
public :
string super_str;
string getStr()
{
return super_str;
}
void setStr(string String)
{
super_str=String;
}
};
class str : public Str{ //inheriting Str publicly
public :
string sub_str;
string getstr()
{
return sub_str;
}
void setstr(string String)
{
sub_str=String;
}
bool notstartswith()
{
int n=sub_str.length(); //to find length of substr
bool flag=false;
for(int i=0;i<n;i++) //Loop to check beginning of Str
{
if(super_str[i]!=sub_str[i])
{
flag=true;
break;
}
}
return flag;
}
};
int main()
{
str s; //object of subclass
s.setStr("Helloworld");
s.setstr("Hey");
if(s.notstartswith()==1) //checking if str is substring of Str
cout<<"Str does not start with str";
else
cout<<"Str starts with str";
return 0;
}
OUTPUT :
Str does not start with str
Explanation:
Above program is implemented the way as mentioned. for loop is being used to check the beginning of the str starts with substring or not.
Answer:
Windows 10 if this is what I think u mean
The best way for employees to improve their skills online is to enroll in a digital office.
office.
<u>Explanation:</u>
In the present innovation-driven world, upskilling is turning out to be progressively significant just in light of the fact that innovation changes so quick.
A key preferred position for workers in web-based learning is that representatives can finish their preparation voluntarily and as indicated by their own timetables.
Enrolling in a digital office would allow an individual to learn at their ease, pace and comfort. It will definitely help the individual to expand and acquire skills.
So now full-time workers or the individuals who essentially don't have the opportunity to return to college full-time have a lot of chances to discover low maintenance courses.
Answer:
The code has been written in Java.
The source code of the file has been attached to this response. The source code contains comments explaining important lines of the program.
A sample output got from a run of the application has also been attached.
To interact with the program, kindly copy the code into your Java IDE and save as Cafe.java and then run the program.
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>