Interface having facility to implement method body in C# 8.0. RRS feed

  • Question

  • Hi

     Hope doing well every one,

     I want to know what is reason that we now allow method implementation in interface in c# 8.0. 

     because before this version we are not able write implementation of method in interface. 

     is there any specific reason to change? then what will be use of abstract class and interface. because now both are similar.


    Rahul Ranjan


    <style>.tb_button {padding:1px;cursor:pointer;border-right: 1px solid #8b8b8b;border-left: 1px solid #FFF;border-bottom: 1px solid #fff;}.tb_button.hover {borer:2px outset #def; background-color: #f8f8f8 !important;}.ws_toolbar {z-index:100000} .ws_toolbar .ws_tb_btn {cursor:pointer;border:1px solid #555;padding:3px} .tb_highlight{background-color:yellow} .tb_hide {visibility:hidden} .ws_toolbar img {padding:2px;margin:0px}</style>

    Monday, October 5, 2020 7:35 PM