|
Thread: Oop
-
Nov 5th, 2005, 09:31 PM
#1
Thread Starter
Addicted Member
Oop
What are the advantages of Interface in OOP? Please give me an example to show that using Interface is better than one without using Interface.
-
Nov 6th, 2005, 05:31 AM
#2
Re: Oop
That sounds exactly like a test question. Why don't you take your OOP textbook and look up the answer yourself?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 12th, 2005, 05:48 PM
#3
Re: Oop
 Originally Posted by ychhuong
What are the advantages of Interface in OOP? Please give me an example to show that using Interface is better than one without using Interface.
An interface is used to specify a class: e.g. if your class implements the interface Runnable, it's considered as a threading class
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|