1)
class Name : public Something
This is called inheritance. The class Name inherits the contents of the class Something, so if the class Something was declared like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
class Something
{
public:
int publicVar;
void publicFunc();
protected:
int protVar;
void protFunc();
private:
int privVar;
void privFunc();
};
|
then the class Name would inherit variables and functions(methods) declared under public: and protected: fields.
It would not inherit privVar and privFunc() because they're under private: field, so they are private to the class Something only.
So an object of type Name would hold all the variables and methods of class Name plus the publicVar, protVar, publicFunc() and protFunc(), which are inherited from class Something.
2)
Name Bob = get_name();
This means you've got yourself a function get_name() which returns an object of type Name which is then copied to the contents of the object Bob. What this code does is: it creates an object of type Name called Bob using the default constructor, then executes the function get_name() which returns an object of type Name. The contents of this object are assigned to the contents of Bob.
3) No freaking idea, I can imagine what it may be because I know what an iteration is but I better leave the answer to someone else. By the way, google and wikipedia are your friends. They should be the first thing you use when you have questions. Here's the topic about iterator in wikipedia:
http://en.wikipedia.org/wiki/Iterator