Object Oriented Programming confused

HI guys i'm new to this concept Please guide me

how to map a class diagram into c++ code
for example below is a class diagram how do i map it in c++ code

http://s23.postimg.org/a1lxhnh3f/Capture.png
please reply fast
well, you'll need to use the class keyword to define a class, and use its ":" operator if you want to have other classes inherit from it. And, you'll need to, in this case, make the class have certain elements, and methods, such as:

1
2
3
4
5
6
int NoOfSigns;

std::string NameOfVotingCategory; //or: char* NameOfVotingCategory

some_return_type DisplaySign();
.

Read the c++ tutorial, specifically parts:

Object-Oriented Programming: http://www.cplusplus.com/doc/tutorial/

Last edited on
Topic archived. No new replies allowed.