Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
class Window //defining a class Window
{
private:
int width, height;//defining integer variable
public:
friend ostream& operator << (ostream& stm, Window& width)//defining a friend function that takes two parameters
{
return stm<<"a ("<<width.width<<" x "<<width.height<<") window"; //use return keyword that return its values
}
Window(int width, int height): width(width), height(height)//defining parameterized constructor that inherit width and height in its parameters
{}
};
int main() //Main method
{
Window w(80,90);//calling class constructor
cout<<w;//print object value
return 0;
}
Output:
a (80 x 90) window
Explanation:
In the above code, a class "Window" is defined that uses a friend function "ostream& operator" is declared that uses the "ostrea&" as a data type to hold two-variable "stm and w" in its parameter, and declared the parameterized constructor to hold value by inheriting width and height in its parameters.
Inside the main method, a class object is created that calls the constructor and uses the print method to print object value.
When was the Ming dynasty established?
the 1100s CE
the 1200s CE
the 1300s CE
the 1400s CE
Answer:
highly venerable to external attacks
Explanation:
Embedded systems are the type of computer systems that are specially designed having hardware and software components plus programmable capabilities embedded into the hardware itself.
These computer systems are motorized by dedicated computer hardware chips made by companies such as Broadcom, Qualcomm, and Marvell. These chips are cheap which also means that they’re highly vulnerable, and the profit margins slim. They normally put a version of the Linux operating system onto the chips, lumping it up with some other bunch of open-source and proprietary components and drivers. With little or no technical engineering work before shipping, and there's little enticement to update their "board support package" until there’s probably a very good reason for it.
<h2>Only when the default parameter are defined in the function</h2>
Explanation:
Answer is same for both the question.
- A default argument or default parameter is assigned an automatic value when the function is invoked.
- So the default value will be assigned during the function definition itself.
- You can find the assignment operator which is being used in the function definition.
- You can overwrite the default values by passing your own value in the calling portion
- The constraint here is that, the default parameter should always be the last parameter of function definition to avoid ambiguity.
Answer: This site is brainly and it is secure, calm down dont be scared
Explanation: Brainly is something where you ask people questions of what ever you want and you can get answers from somebody and you can get 5 points if you answer somebodys questions.