Answer:
Portrait and landscape
Explanation:
please rate brainiest for my progression
Answer:
That is a Java language
Explanation:
This is simply Because C++ language does not support the calling of the methods without parameters and with the .(dot) operator.
It can also be clearly noted that This is the functionality of Java, for example, to sort we call Array.Sort().
So the parameter here is passed by placing the variable at front with the . (dot).
Answer:
Option D void setAge(int newAge);
Explanation:
In object oriented programming, mutator method is defined to change the value of the data member(s) in the class. Since the mutator method is aimed to change the value of a class data member, it is required to take in one new value as parameter to overwrite the existing value of data member. The mutator doesn't return any output. Hence, the best declaration for a mutator method to change the age is
void setAge(int newAge);
The new value of age is passed to parameter <em>newAge</em> and the <em>void </em>means the method doesn't return any value as output.
Answer:
To make the value 10 also part of the loop, the while statement must be "while x<=10" otherwise 10 is excluded. To have only even numbers, x should be increased by 2, not 1, i.e.: "x = x + 2".