Whats the difference between Interface and Method?

Thiago Macieira thiago at kde.org
Wed Aug 29 01:00:06 PDT 2012


On quarta-feira, 29 de agosto de 2012 05.27.58, pramoda.subraya at wipro.com 
wrote:
> Can anybody explain the difference b/w Interface and the Method. I am trying
> to understand. Please...

An interface contains methods.

It's like asking the difference between a cookie and a packet of cookies. Also 
note that, after you eat the cookies, the packet of cookies contains 0 cookies 
(an interface can contain 0 methods, though I don't recommend eating them).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120829/04c43f71/attachment.pgp>


More information about the dbus mailing list