TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
suraj rai
NA
53
0
Can any 1 tell me few scenarios 4 using Interface in C#
Jul 9 2007 3:46 AM
Hi all ,
I ve'nt use an Interface yet as I am really confuse abt its use.
I have read in articles that When trying to build maintainable,
reusable, and flexible C# code, the object oriented nature of C# only
gets us 50% of the way there. Programming to interfaces can provide us with the last 50%.
Now if we go for Interface defination then :-
An interface is a reference type object with no implementation.
No properties or methods are actually coded in an interface, they are only defined.
So the interface doesn't actually do anything but only has a signature for interaction
with other classes or interfaces.
Can any one plz explain me how interface is the replacement of multiple inheritance of c++.
If it has only signature of the methods then how it helps for multiple inheritence.How
it increase code reusability.
If possible plz give some codes and help me understand this little concepts. I have went
through many articles but could'nt figure out where to use so that it will
increase COde reusabilty.
Thanks & Regards
s_raj0205
Reply
Answers (
8
)
What’s this? Learn C++ before C#... Why though?!
how to create OCX user control in vb.net