Could anybody please tell me what is the advantage of declaring variables to be of an interface rather than class type?
elna
0
Newbie Poster
Recommended Answers
Jump to PostMy computer science professor will probably yell at me for saying this, but I'm not sure other than having an interface for a class is the same advantage as having like a prototype for a method.
All 2 Replies
Dani
3,986
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
BountyX
7
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.