1.Public Private and Internal or Friend these access modifier can use for class
2.Public Private and Internal or Friend ,Protected and internal protected can we
used with Method
3. no Access modifier Allowed in Interface (Inside interface means for method or
property).for declaring interface u can use public or internal
4.for defining Abstract class u can use internal or public class .for abstract
method u can use only public access modifier (no internal,protected) .without
abstract method u can use any Access modifier.
5.Abstract Method Can not be marked as Virtual.and at the time of implementation
of Abstract Method we have to use Keywaord Override .u can not use "NEW" key
word at the time of implemmentation of Abstract Method
6.if any class have an Abstract Method this class called Abstract Class.
7.Sealed keyword for method can we used with override keyword only.
8. Condition--Class A is inheriting in Class B and Class B is inheriting in
Class C There is an condition where one method(Base class A ) is overriding in
derived class(Class B) now again I want to override this method again in
derived class(Class C). is it possible if yes how Answer-Yes with the same key
Word Override if we want to Stop to override this class then we can use Sealed
keyword
9.How to call base class method (which keyword will use )
10.Can u use virtual in base class and NEW in derived class --- Yes
11.Can u override an method which is hideing the base class method (by using New
KeyWord)--Yes
12.Static Method can not access an instance member.
13.We can convert the integer “i” using “i.ToString()” or “Convert.ToString” so
what’s the difference.The basic difference between them is “Convert” function
handles NULLS while “i.ToString()”does not it will throw a NULL reference
exception error. So as good coding practice using “convert” is always safe.
14.Serialization is the process of converting an object into a stream of bytes
in order to persist it to memory, a database, or a file. Its main purpose is to
save the state of an object in order to be able to recreate it when needed. The
reverse process is called deserialization.
15 Attributes provide a powerful method of associating metadata, or declarative
information, with code (assemblies, types, methods, properties, and so forth).
After an attribute is associated with a program entity, the attribute can be
queried at run time by using a technique called reflection.
16.Application domains provide a flexible and secure method of isolating running
applications.
Application domains are usually created and manipulated by run-time hosts.
Occasionally, you may want your application to programmatically interact with
your application domains, for example, to unload a component without having to
stop your application from running.
Application domains aid security, separating applications from each other and
each other's data. A single process can run several application domains, with
the same level of isolation that would exist in separate processes. Running
multiple applications within a single process increases server scalability.
No comments:
Post a Comment