Ask Question
18 October, 16:49

2. Suppose you want to write a method that prints a heading on a new output page, along with a page number that is 1 in the first activation and that increases by 1 with each subsequent activation. Can this be done without parameters and without reference to nonlocal variables in Java

+5
Answers (1)
  1. 18 October, 20:04
    0
    This can be done in both Java and C#, using a static (or class) data member for the page number.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “2. Suppose you want to write a method that prints a heading on a new output page, along with a page number that is 1 in the first ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers