Hi, my assignment is asking me to include accessor functions that returns the values stored in each of an object of class Voter’s member variables respectively.
If the member variables are:
Will the accessor functions be:
Not sure I understand this exactly.
You'll need return types, just like in regular functions. The exception is that dtors/ctors do not return anything.
Also, try using code tages (the little button that says <>).