Answer:
d. A subclass reference can be assigned to a superclass variable, but a superclass reference cannot be assigned to a subclass variable.
Explanation:
A subclass is a class which is derived from another class. A subclass will have the characteristics of its ancestor class. A superclass is a class which is class direct ancestor. A superclass is an existing class from which new classes are derived whereas subclass is a class which is derived from superclass. The correct statement is that a subclass can be assigned to a superclass variable.
It kind of depends on the intended language, but I can see the following mistakes:
- lines not terminated with a semicolon (but not all languages require this)
- while statement missing parenthesis, ie., while (num1 <= num2), also not required in all languages
- statements below the while statement must be grouped by curly braces
- num1+5 should be num1=num1+5 or num1 += 5
Output will be:
10
15
20
25
30
Answer:
10000000000
Explanation:
While a typical byte only goes up to 8 digits, you can expand past that by having each integer past the initial 8 just double the amount from before
Answer:Offers professional document appearance
Explanation: