how to maintain the session state?
what is Abstract class and interface and inheritence with
example?

Answer Posted / anitha

Session object can be used for storing session-specific
information that needs to be maintained between server
round trips and between requests for pages.various modes of
storing ASP.NET session is:InProc,StateServer,and SQL
SERVER state.

Abstract classes provide a simple and easy way to
version your components. By updating the base class, all
inheriting classes are automatically updated with the
change. Interfaces, on the other hand, cannot be changed
once created. If a new version of an interface is required,
you must create a whole new interface.
If we want to provide common, implemented
functionality among all implementations of your component,
use an abstract class. Abstract classes allow you to
partially implement your class, whereas interfaces contain
no implementation for any members.

Inheritance is getting properties from parent class
to child class.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is definingquery in entity framework? : Entity framework

555


How does work clr?

537


What is controllercontext?

544


Possible ways to prevent xss attacks on mvc application?

575


Explain what platforms does the .net framework run on?

548






How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

518


What is needed for running an application built on winfx on the .net framework 3.0?

518


Name a few different return types of a controller action method?

539


What is the use of action filters in an mvc application?

610


Is it possible to share a view across multiple controllers?

519


Explain bundle.config in mvc4?

647


What is edm in entity framework?

532


Mention the core components of .net framework?

579


Mention what is the difference between “ActionResult” and “ViewResult” ?

577


what is .edmx file and what it contains?

602