An abstract class and Interface both have method only but not have body of method.The difference between Abstract class and An Interface is that if u call Ablstract class then u have to call all method of that particular Abstract class but if u call an Interface then it is not necessary that u call all method of that particular interface.Method OverLoading:-Return type, Parameter type, parameter and body of method number may be different.Method Overriding:- Return type, Parameter type, Parameter Number all must be same . Only body of method can change.
I don't agree with the above answer. Abstract classes and Interfaces both are used either for design reasons or Security reasons.Both are used when you want to force a protocol of behaviour or anything you wants to come into the system.Take an Example of shape,line,circle and rectangle. Anyone who wants to become a shape can implement the IShape interface and come into the system, this can also be achieved using abstract class but in case of abstract class if some one derives a class from line class that also comes into the system forcefully.So there is a choice whether you want to force something or you wants to make it optional.If you want to force then use abstract class if you want to keep optional use Interfaces.
Abstract class and Interfaces both are basically the same but with one major difference.Abstract classes are used whenever you want to force a Inheritance hierarchy whereas in Interfaces this is optional.If anybody wants to come into the system then he has the choice of implementing the interface and thus comes into the system.Whereas if you use abstract class then the all the classes down the hierarchy comes into the system forcefully.
Well i can comment about an abstract class i think abstract class is a class which serves as a templete class for all the derived classes.we usually did not make an instance of an abstract class
Shadowing is the concept where programming elements having the same name hides the identity of one. e.g : In case of inheritance the derived class member hides the base class member with the same name.
How to create a DB connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed. if question not clear,let me know.