Answer:
The class definition for above problem in java is as follows:-
Explanation:
class Counter // class counter
{
int counter; // variable counter
Counter(int v) // construtor
{
counter=v;
}
void increment() //increment function
{
counter=counter+1;
}
void decrement() //decrement function
{
counter=counter-1;
}
int getValue() //getvalue function
{
return counter;
}
}
Code Explanation:
- The above class definition is in java language.
- In this code, the name of the class is a Counter and it holds the three functions (increment, decrement and getvalue) and one constructor which is mentioned in the question.
- To call the above class and their function firstly the user needs to create an object of the counter class in the main function by passing the one integer value on it.
- The object declaration statement calls the constructor.
- And then any function can be called by the object of the class with the help of the dot operator.
Answer:
Structured programming also known as Modular programming in which the program is made as a single structure.The execution is instruction by instruction.It mainly focuses on improving the quality,clarity and development time of a computer program.
The top-down approach works by breaking a complex algorithm into smaller parts called modules. The modules keep breaking until there is no space left for breaking them without hindering the originality.The breaking of the modules is prohibited after achieving a certain level of modularity . C language uses this approach.
Bottom up works exactly opposite of how the top-down approach works.This approach works in the most elemental level of solving a problem and going up with combination of several parts of the solution to achieve required results.
It has negative correlation
Hello,
Your correct answer to this question is "<span>Choose Delete from the File menu."
Hope this helps
-Jurgen :D</span>
Answer:
get a macbook it has a 2 year manufacturer date wireless $1200 walmart