CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2004
    Posts
    346

    why all the metods in an interface public?

    why are all the metods in an interface public?
    why not protected ?

  2. #2
    Join Date
    Mar 2004
    Location
    33°11'18.10"N 96°45'20.28"W
    Posts
    1,808

    Re: why all the metods in an interface public?

    because its an interface. as its name denotes, it is the interface through which you access an object implementing it. the concept of private / protected is an implementation detail, which is left to an abstract class.

  3. #3
    Join Date
    Aug 2004
    Posts
    346

    Re: why all the metods in an interface public?

    thanks!

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

Featured