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:
highlighted items in webpage are called links.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
#include <iostream>
// it is preprocessor director that manipulate the input output in the program
using namespace std;// it is used to format input and output
int main() {
// main function is started
int x = 5;
// variable x is declared and initialized with value 5.
int y = 6;
//variable y is declared and initialized with value 6.
int z = 34; //variable z is declared and initialized with value 34.
int total = (x+(x + y)*z+y);
// variable total is declared and initialized with value of x,y,and z. and calculation performed on these value such as (5+(5+6)*34+6) that is equal to 385.
cout << total;
// print the value of total variable that is 385
return 0;
}
Answer:
Alternative Press just differs in opinion from mainstream media. A tabloid is literally smaller and is contains sensationalist and largely photographic content.
Most alternative presses aren't reliable and are effectively tabloids in nature, but their content differs.
Answer:
literacy
Explanation:
Media literacy. This is a worldwide educational movement that aims to teach to people to understand how the media affect both individuals and society as a whole.