VB.NET - encapsulation - Dec 29, 2009 at 15:33
PM by Nishant Kumar
What is encapsulation?
It is the fundamental principles of
object-oriented programming. It hides all the internal details of an object
from the outside world. It hides its data and methods from outside the world
and only expose data and methods that are required. It provides us
maintainability, flexibility and extensibility to our code. It makes the fields
in a class private and providing access to the fields using public methods
Encapsulation allows us to create a "black box" and protects an objects
internal state from corruption by its clients.
Steps to attach a debugger to the application: a. Start the
service needed to be debugged. b. In Visual Studio IDE, select Debug menu and
click on Processes...............
SystemExceptions are thrown by the CLR and are of more generic nature, whereas,
ApplicationExceptions are thrown by Applications..................
Managed code not always is slower than unmanaged code. In managed code, the CLR
does some optimization for the way loops..................