Answer: Your friend wants you to email her.
Explanation:
Answer:
Explanation:
The OOP or object-oriented programming can be used in day to day situations, and can be more simple to understand for the programmer and for the user, for beginners is easier to learn with a visual interface, and even we can improve our imagination with objects, colors and aesthetic models, we can reuse, and we have a structure to hide our code, OOP It is not an obsolete technology yet.
Answer:
#include<iostream>
using namespace std;
//main function
int main(){
//initialize the variables
int n = 5;
int j=1;
// for loop
for(;j<=n;j++){
cout<<"*"; //print the '*'
}
}
Explanation:
Create the main function and declare the variable n with the value 5 and initialize the variable j with zero.
take a for loop for executing the statement again and again until a condition is not false.
Syntax for loop:
for(initialize; condition; increment/decrement)
{
statement;
}
we can initialize the variable outside as well but the semicolon always present in the loop otherwise compiler gives the error.
for example:
int i=0;
for(; i<4; i++){
statement;
}
The condition put in the original code is j <= n and n has the value 5. so, the loop executes 5 times and inside the loop, write the print statement for print the character '*'.
Answer:
online display advertisement
Explanation:
Q:
Glenda is searching airline schedules on HolApp, a mobile Web application. While browsing …
A. online display advertisement
B. contextual advertisement...
A:
A
Answer:
The answer to the given question is the option "b".
Explanation:
In the question option b is correct. It is given that class bClass is a derived class that inherits the base class that is aClass. In the c++ programming language we use the (:) for the perform in inheritance. "Driving a new class from an old class is called inheritance". and other options are not correct that can be described as follows:
- In option (a) and option(c) the scope resolution operator is used, The scope resolution operator does not use for the single level inheritance it is used for declaring the outline function as well as it is also used for initialized the static variable.That.s why the option(a) and option(c) is incorrect.
- In the option(d) the base class i.e "aClass" inherit the derived class i.e "bClass " this is wrong so this option is incorrect
That's why the option "b" is correct.