Mal by som otazku ohladom Java API, konkretne teda niekolkych tried.
Ide mi o to, ze v triede java.net.URL pouzitim metody openConnection() je mozne vytvorit instanciu abstraktnej triedy URLConnection. Ako je to mozne? V zdrojakoch som sa k tomu nedopatral.
[Java] Instancia abstraktnej triedy
Re: [Java] Instancia abstraktnej triedy
The abstract class URLConnection is the superclass of all classes that represent a communications link between the application and a URL.
Instances of this class
can be used both to read from and to write to the resource referenced by the URL. In general, creating a connection to a URL is a multistep process:
Instances of this class
can be used both to read from and to write to the resource referenced by the URL. In general, creating a connection to a URL is a multistep process:
Re: [Java] Instancia abstraktnej triedy
Ok, ale skor som myslel, to ze ktora trieda Java API vytvara implementaciu tej abstraktnej triedy. Medzicasom uz som zistil, ze ho vyvtvaraju triedy mimo Java API.