top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

By default all members of class are private then why not destructor is private in .net?

+1 vote
332 views

All constructors are public then why not destructor? If it is private then how compiler access these private destructor?

posted Sep 7, 2014 by Tapesh Kulkarni

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+3 votes

By-default all the methods & variables in class are private.

In C#.net Main() method is private then how compiler access this Main() Method out side the class because compiler is not part of our program then how compiler access this Main() method?

Here we loose our data abstraction property ? Can anyone put some light on it?

...