locked
is interface contain only function prototype ? RRS feed

  • Question

  • User-1682137340 posted

    Hi i am new to c#

    i know that interface contain only function prototype ?

    is it also contain objects like fields, properties , indexes, and other  ?

    Tuesday, September 2, 2014 2:05 AM

Answers

  • User-1360095595 posted

    Yes indeed. Read all about it here: http://msdn.microsoft.com/en-us/library/87d83y5b.aspx

    I hope you find my google/bing skills helpful.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 2, 2014 2:10 AM
  • User466733699 posted

    is it also contain objects like fields, properties , indexes, and other  ?

    Yes a Interface can contain events, indexers, methods, and properties.

    here is a link for you

    •   http://msdn.microsoft.com/en-us/library/ms173156.aspx
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 2, 2014 2:10 AM

All replies

  • User-1360095595 posted

    Yes indeed. Read all about it here: http://msdn.microsoft.com/en-us/library/87d83y5b.aspx

    I hope you find my google/bing skills helpful.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 2, 2014 2:10 AM
  • User466733699 posted

    is it also contain objects like fields, properties , indexes, and other  ?

    Yes a Interface can contain events, indexers, methods, and properties.

    here is a link for you

    •   http://msdn.microsoft.com/en-us/library/ms173156.aspx
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 2, 2014 2:10 AM