Design Pattern - for KangaRoo

KangaRoo,
Thanks for ur valuable input at
http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=10254770 

I will PAQ this question in a week or so,meanwhile canyou pls tell me what do you mean by delegation,I am sure that I must have used it but I am not sure of the terminology yet.

Pls illustrate with short code.
Regards

p.s I will increase points as my daily quota goes on increasing.
DesignPatternsAsked:
Who is Participating?
 
KangaRooCommented:
This is probably a very simple 'pattern'.

class A { void f(); };
class C
{
   A* a;
   public:
     void f() { a->f(); }
}

Objects of class C delegates responsibilities to objects of another class.
0
 
KangaRooCommented:
I can't remember we've talked about Delegates in the metioned thread, but I'lltake a look.
0
 
DesignPatternsAuthor Commented:
I just wanted to know what is delegation ,should I post another question for this?

its not mentioned in the indicated thread.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
KangaRooCommented:
No need, I was just checking if it was mentioned somewhere. I haven't used or studied that pattern, I'll have to look it up.
0
 
DesignPatternsAuthor Commented:
Can you tell me what is simple delegation?

thanks
0
 
DesignPatternsAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.