Answer: whats the answer choices
Explanation:
Answer:
The code to this question can be given as:
Code:
public class Book //define class.
{
private String title, author; //define variable.
Book(String a, String b) //define parameterized constructor.
{
title = a; //holding value.
author = b;
}
public String toString() //string function
{
return title + "\n" + author; //return value.
}
}
Explanation:
In the above java code firstly we declare the class book that name is already given in the question. Then we declare the private variable that datatype is string author and title. Then we declare the parameterized constructor. In the parameterized constructor we use the private variable for hold constructor parameter value. Then we declare the tostring() function in this function we return value of the title and author variable.
Answer:
Excel Help
Explanation:
Press F1 key to open the excel help window
Or you can also click the excel help button to launch the help window.
Type for whatever you are seeking help for and you will notice suggestions as you type something. These suggestions include online and offline results. If there are too many results then try searching offline it will narrow down the results.
After typing the text and hitting enter, the excel help returns several related topics on the searched query. You can browse through these topics and get help from excel.
Answer:
See explaination
Explanation:
#include <iostream>
using namespace std;
string * createAPoemDynamically()
{
string *p = new string;
*p = "Roses are red, violets are blue";
return p;
}
int main() {
while(true) {
string *p;
p = createAPoemDynamically();
if (!p)
{
cout << "Memory allocation failed\n";
}
cout<<*p<<"\n";
// assume that the poem p is not needed at this point
//delete allocated memory
delete p;
}
}
Answer:
The answer is A. Punctuation. A password can contain symbols
Explanation: