.Net - access modifiers
available - August 25, 2008 at 18:00 PM by Amit Satpute
What are the access modifiers available?
Answer
There are five different access modifiers:
-
public:
It specifies that it can be accessed by anyone.
-
private:
Private declared variables, classes or functions can be accessed only by the
member functions. No one from outside the class can access them.
-
protected:
This access specifier is useful in a hierarchy wherein an access can be given
only to the child classes.
-
internal:
These limit an access only within an assembly. Its is similar to a friend
function of C++.
-
protected internal:
These limit the access within the assembly and to the child classes in the
hierarchy
In weak typing, it is allowed to define a block of memory as another type
(casting).
Languages like C, C++ are weakly and statically typed...............
Serialization is a process of taking an object and converting into a form so
that it can be transported across the network. The serialized data can also be
stored at a location using de-serialization............
Common Language Runtime, Common Type System, Type Safety, Managed Code
Execution, Side-by-side execution...............
|