Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


I have a few questions that I am trying to understand.Please help.

Posted on 2005-02-24
Medium Priority
Last Modified: 2010-04-16
What is an abstract class?
What is an interface class?

Can you explain them so an laymen can understand?

What is a state server?

A virtual constructor?

What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Any help would be great.I cant learn if I dont ask questions right!
Question by:mathieu_cupryk
1 Comment
LVL 16

Accepted Solution

OliWarner earned 2000 total points
ID: 13399949
This is more Java than .net, but anyway...

An abstract class is one that MUST be inherited. This is usually because creating an instance of it on its own would do nothing. If you had an abstract class Vehicle you couldn't make an instance of it because you'd need to make a class called Car that inherits it for it to make any sense.

An interface class is one that can be used to make sure guidelines are adhered to. The interface states which functions must be declared. it also goes into polymophism, but I dont think i can explain that here.

Virtual constructors(and more) explained better than I can: http://www.manualy.sk/c++faq/virtual-functions.html

Server.Transfer and Response.Redirect:
A RR sends a 430 code to the client browser with a URL attached. The client loads the URL instantly.
A ST makes the server stop what its doing and move onto another script. The client knows nothing of this transfer and it thinks its on the same script as before. These are useful for when you want to fake images with script output as you can transfer the browser from the .jpg to the output of the script without the user knowing any different.

If you're having problems with inheritance, i wouldnt say .net is the best thing to start learning it in. Java is the safest playbox for that sort of stuff.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question