Last post Jul 07, 2014 05:42 AM by Mikesdotnetting
Jul 07, 2014 02:39 AM|Rohit Binjola|LINK
I want to know what is the need of this........
Kindly explain the answer with example.........
Jul 07, 2014 02:51 AM|Mikesdotnetting|LINK
Why don't you just read the answer to the question on Stackoverflow where you copied the question from?
Jul 07, 2014 03:13 AM|Rohit Binjola|LINK
Thanks for the suggestion Mike,Actually i was searching for the same and but the answer explained there does not satisfied me , as of now thats why i have copied the question from there into this forum can you please explain in brief, why its not public
Thanks In Advance..........
Jul 07, 2014 04:03 AM|Mikesdotnetting|LINK
Try this answer instead: http://stackoverflow.com/questions/11162336/why-must-methods-implementing-internal-interfaces-be-public
Jul 07, 2014 04:47 AM|Rohit Binjola|LINK
Thanks for the reply Mike,this answer is also considerable but what i think is ,
we cannot have private method(only those declared inside interface) inside class inheriting interfaces is as interfaces are designed as contract and for exposing the properties of the class it inherits to outside world
and if we will make the methods private then those methods will not be accessed by any other class that is completely against the why interface are build................
Jul 07, 2014 05:42 AM|Mikesdotnetting|LINK
That's pretty much what Jon Skeet said in the second answer.