what interfaces brings to me

seco

Well-known member
Joined
Mar 4, 2007
Messages
66
Programming Experience
Beginner
Hi
im starter and just asking
suppose that i implement ilist or any other shipped interface for a class it writes alot of empty subs and functions for it .ok.


what is the gain now?where is the deal ?
i think that inheritance is really the best but what about interfaces and how can help me in real applications
 
thanks for reply

i read it it's good
i understand that interfaces could help me in multi inheritance but there is other ideas that interfaces could solve im sure
i need to know any

thanks in advance.
 
Erm.. not really. An interface merely lets an object prove to the runtime, that it is capable of acting in a certain way.. Like you having a driving licence lets you prove to a police officer that youre capable of driving a car.. They are for no other purpose, because that is what it will always boil down to; in a type-safe language, proof that one type is capable of behaving like another type
 
Back
Top