I have learnt so far that abstract classes can't be instantiated because they are only there for other classes to inherit from. But i cant get my head around this code i came across in the msdn library:
WebRequest myRequest = WebRequest.Create("http://www.contoso.com");
in the documentation it says the above code returns a WebRequest instance.
but the WebRequest class is an abstract class, and how comes the above code returns an instance of an abstract class when abstract classes can't be instantiated.
please relieve me from my agony.