> On 09 Jun 2016, at 02:36, Graeme Geldenhuys
> wrote:
>
>> On 2016-06-09 00:46, Maciej Izak wrote:
>> ± yes, it is called Class and you need no-arg constructor for that:
>
> Thank you very much Maciej. I couldn't get your code to work.
Please take this thread, and future similar ones, to the
On 2016-06-09 00:46, Maciej Izak wrote:
> ± yes, it is called Class and you need no-arg constructor for that:
Thank you very much Maciej. I couldn't get your code to work. Eclipse
(thus Java Compiler) insisted that I replace Class with
Class which completely defeats the exercise - the
whole point
2016-06-09 1:17 GMT+02:00 Graeme Geldenhuys :
> Does Java have an equivalent feature of a Object Pascal language's Class
> Reference.
>
+/- yes, it is called Class and you need no-arg constructor for that:
https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html
public void executeVisitor
On 2016-06-09 00:23, Ryan Gonzalez wrote:
> Not sure about your question exactly, but everything in Java is passed by
> reference
Not quite what I meant. :) The Object Pascal feature is that my example
code - ExecuteVisitor() - doesn't know at compile time what instance
(any descendant of TVisito
Not sure about your question exactly, but everything in Java is passed by
reference, and all objects are covariant, so you shouldn't need to do
anything.
On Wed, Jun 8, 2016 at 6:17 PM, Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk> wrote:
> Hi,
>
> I know this is not a Java forum, but though
Hi,
I know this is not a Java forum, but thought maybe somebody here with
Object Pascal and Java knowledge could help (seeing that Java-only
developers might not know what I'm talking about).
Does Java have an equivalent feature of a Object Pascal language's Class
Reference.
For Example:
I want