Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #8597

Re: casting di un oggetto

Newsgroups it.comp.java
Date 2015-10-10 13:29 -0700
References <mvbe0r$61r$1@speranza.aioe.org> <a7aab062-53da-48f7-98ea-76dc6f241a27@googlegroups.com>
Message-ID <22e905b3-621c-47dd-834d-3026149b16b1@googlegroups.com> (permalink)
Subject Re: casting di un oggetto
From 4ndre4 <a.laforgia@gmail.com>

Show all headers | View raw


On Saturday, 10 October 2015 18:04:23 UTC+1, rootkit  wrote:

[...]
> a compile time รจ consentito.

Huh? 
Stai dicendo che questo sotto non da` problemi a compile time? 

    private interface DisneyCharacter {
        void parla();
    }

    private class Topolino implements DisneyCharacter {
        public void parla() { System.out.println("ciao, sono Topolino"); }
    }

    private class Pippo implements DisneyCharacter {
        public void parla() { System.out.println("ciao, sono Pippo"); }
    }

    Topolino topolino = new Topolino();
    Pippo pippo = (Pippo)topolino;   <---- cast non valido

Back to it.comp.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

casting di un oggetto "Vittorio" <scipionelafricano@tim.it> - 2015-10-10 18:22 +0200
  Re: casting di un oggetto rootkit <rootkit@email.it> - 2015-10-10 10:04 -0700
    Re: casting di un oggetto 4ndre4 <a.laforgia@gmail.com> - 2015-10-10 13:29 -0700
      Re: casting di un oggetto rootkit <rootkit@email.it> - 2015-10-10 14:07 -0700
        Re: casting di un oggetto 4ndre4 <a.laforgia@gmail.com> - 2015-10-11 06:05 -0700
  Re: casting di un oggetto 4ndre4 <a.laforgia@gmail.com> - 2015-10-10 13:29 -0700
    Re: casting di un oggetto "Vittorio" <scipionelafricano@tim.it> - 2015-10-11 00:35 +0200
      Re: casting di un oggetto 4ndre4 <a.laforgia@gmail.com> - 2015-10-11 06:04 -0700
      Re: casting di un oggetto rootkit <rootkit@email.it> - 2015-10-11 08:58 -0700

csiph-web