Hands On

Candidate Class

Steps

  1. Go here to get candidate class
  2. Make a project using this code
  3. Add 2 new candidates to the code.
  4. Modify the class to also store and display candidates age (integer).
  5. Modify polls to be an array of ints. Add a int to keep track of the number of polls stored (max 100). Add a member function "addPoll" which add a new poll. Add a member function "showPolls to show polls for a candidate.


This topic: SCMP118 > Main > Spring2018 > HandsOnObects
Topic revision: r1 - 2018-03-22 - JimSkon
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback