Results 1 to 3 of 3

Thread: Oop

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Exclamation 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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Oop

    Quote 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
  •  



Click Here to Expand Forum to Full Width