Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Using main from abstract class in concrete class Date: Sun, 13 Aug 2017 11:47:19 +0200 Organization: Decebal Computing Lines: 9 Message-ID: <87h8xbx0ig.fsf@munus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1615173a1409002a85fbdd25ac4b9ead"; logging-data="25118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ie4pif9QrMzBJerTwa9Xq5tl0zxPtkMA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:2d+kjG8zjWO8adwTAbAOrJAwpew= sha1:AQWreVNqcM6SQbWBIJ8XGxmP0nE= Xref: csiph.com comp.lang.java.programmer:37169 I have an abstract class. There can be several concrete classes that extend this class. Is it possible to write a main in the abstract class which will be used by the concrete classes and that in the main a instance of the concrete class is created? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof