Monday, March 30, 2015

Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

Question:Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace??

Answer: </P><P align=justify>There is no way to restrict to a namespace. Namespaces are never units of protection. But if you&#39;re using assemblies, you can use the &#39;internal&#39; access modifier to restrict access to only within the assembly.

Tags:Interview Questions, Microsoft, C#,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



Hospital Management Software

Hotel Management System Software

Hotel Management System software is a web based system help to manage reservations, roomstays, bookings, guests, folios, invoices and billing etc. The software features include revenue management, booking calendar, guest relationship management, check-in & check-out, invoices and receipts etc...

No comments:

Post a Comment