Association

Pages: 12
firix wrote:
you can know what the class but you do not know what the struct.rather interesting..

good luck.

Why is it not believable that someone knows what a class is but not what a struct is? It just means the person hasn't read about it / been taught. It's not automatically clear that two different keywords represent basically the same thing.

I'll admit I sometimes get fed up with the occasional poster who doesn't seem to be able to take a single step on their own, but I think the proper response to those situations is to just leave the thread alone. Most often in this type of forum, if you don't have anything nice or helpful to say, it's best to say nothing at all.

Is my answer the wrong answer to this question?
I really don't want to dwell on this, but your answer was plain ironic. The answer would be "a struct is just a class that defaults to public".
I did not talk about the struck..


rej3kt wrote:

I don't understand what association does that inheritance doesn't and even how I use association


my answer is:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Employee{
	int age;
	int name[30];
public:
	Employee()
	{
	   cout <<" I am Employee" << endl;
	}


};



class Manager{
	int x;
	Employee *ptr;
public:

};

 




where plain ironic ?

I asked thirty questions on this site.
how many answer solved to my question ?
maybe thirty questions, 10 of them.

Last edited on
Topic archived. No new replies allowed.
Pages: 12