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 viewstart page in mvc?

773


What is main objective of asp.net mvc 4 or what is new in mvc4 ?

817


What is objectset? : Entity framework

743


How do I use partial view?

738


What are the advantages of mvc over asp.net?

754


What are the components required to create a route in mvc?

810


Why to use html.partial in mvc?

917


What is disconnected scenario? : Entity framework

754


what is use of entitydatasource control?

832


What is meant by tempdata in mvc?

744


Possible ways to prevent xss attacks on mvc application?

755


Explain Bundle.Config in ASP.Net MVC4?

773


What is entity framework used for?

749


If I have multiple filters implemented, what is the order in which these filters get executed?

721


mention what is the key advantage of using entity framework or ef?

770