Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
writing Implements keyword in the line following the class name

回答済み writing Implements keyword in the line following the class name

  • 2012年3月11日 20:00
     
      コードあり

    Hello All,

    why we must write Implements keyword in the line following the class name

    ex.

    Public Class Developers
    Implements IEmployee
    thanks all,


すべての返信

  • 2012年3月11日 22:07
     
     回答済み

    You only must write it if you want to implement the IEmployee interface.  If you don't want to implement that interface, then don't write it.

    If you want a language with less keywords, migrate to C#.


    Jose R. MCP

  • 2012年3月12日 15:25
     
     回答済み

    Inconsistency.

    It's on a separate line for class headers, but on the same line for methods - no other reason than inconsistency.


    Convert between VB, C#, C++, & Java (http://www.tangiblesoftwaresolutions.com)