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 poco proxy? : Entity framework

551


Explain .Net Framework? Why we use it?

603


List out few different return types of a controller action method?

602


What is .net framework used for?

575


what is entity sql?

595






Can I uninstall microsoft .net framework?

542


What is a model in android?

484


Explain linq to entities? : Entity framework

537


What is the .net framework?

568


How to enable Attribute Routing?

612


What is the 'page life cycle' of an ASP.NET MVC?

600


What is meant by bootstrap in mvc5?

629


What is the greatest advantage of using asp.net mvc over asp.net webforms?

553


differences between poco, model first and data first approach?

587


Explain the advantage of packaging over xcopy in .net?

538