Member Functions!!!

Hello!!!
I want to create these two member functions (AddMember() for adding members and DeleleMember() for deleting members) in my derived class but i can't understand how to do this. I have bass class (User) and derived class (Members). Base class has four data members (ID,Name,Address,Status) and derived class has one data member (Password). Can anyone tell me how can i use these data members to create the above member functions?
It does not make sense to have {Add,Delete}Member inside a Member class.
¿why should a Member have knowledge of other Members?

Those methods belong to a Container class.
Read this to learn how to write classes in C++:
http://www.cplusplus.com/doc/tutorial/classes/

Otherwise do you have a specific question? Have you something which does not compile?
You can use a new class and add Members as needed (with new Members). The same for deleting them.

You must decide what exactly you want to do. Use paper and pencil for first time.
Consider constructor and destructor of Members.

Base class has some point if you have some intension of creating some more derived classes.
Topic archived. No new replies allowed.