141k views
4 votes
Write the interface (.h file) of a class Counter containing: A data member counter of type int. A data member named counterID of type int. A static int data member named nCounters. A constructor that takes an int argument. A function called increment that accepts no parameters and returns no value. A function called decrement that accepts no parameters and returns no value. A function called getValue that accepts no parameters and returns an int. A function named getCounterID that accepts no parameters and returns an int.

User Also
by
5.2k points

1 Answer

4 votes

Step-by-step explanation:

See the attached image for The interface (.h file) of a class Counter

Write the interface (.h file) of a class Counter containing: A data member counter-example-1
User Neargye
by
4.4k points