Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Fondamenti di architettura e programmazione > [HELP] clone()
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
elias86
.precettore.

User info:
Registered: Nov 2005
Posts: 86 (0.01 al dì)
Location: Lissone
Corso: Comunicazione Digitale
Anno: 4
Time Online: 1 Day, 0:08:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Lightbulb clone()

Qua trovate una bella spiegazione x il metodo clone().

http://www.dis.uniroma1.it/~liberat...lone/clone.html

30-01-2006 21:23
Click Here to See the Profile for elias86 Click here to Send elias86 a Private Message Visit elias86's homepage! Find more posts by elias86 Add elias86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Reaper
Maestro Jedi

User info:
Registered: Oct 2005
Posts: 362 (0.05 al dì)
Location: Patagonia
Corso: ComDig
Anno: MOoooLto InDieTRO...
Time Online: 1 Day, 16:04:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

bacio! :)

30-01-2006 22:06
Click Here to See the Profile for Reaper Click here to Send Reaper a Private Message Find more posts by Reaper Add Reaper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elias86
.precettore.

User info:
Registered: Nov 2005
Posts: 86 (0.01 al dì)
Location: Lissone
Corso: Comunicazione Digitale
Anno: 4
Time Online: 1 Day, 0:08:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
ma che bacio??

Originally posted by Reaper
bacio! :)


ma che bacio e bacio!! schiaffoni!!!.. son un maschio!!!

30-01-2006 22:09
Click Here to See the Profile for elias86 Click here to Send elias86 a Private Message Visit elias86's homepage! Find more posts by elias86 Add elias86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skilotto83
..Energia positiva...

User info:
Registered: Jun 2003
Posts: 1608 (0.20 al dì)
Location: Arconate
Corso: Informatica
Anno: LAUREATO!!!
Time Online: 15 Days, 6:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: ma che bacio??

Originally posted by elias86
ma che bacio e bacio!! schiaffoni!!!.. son un maschio!!!


ahahha :lol:

__________________
"Why, Sir, you find no man at all intellectual who is willing to leave London.
No, Sir, when a man is tired of London, he is tired of life; for there is in London all that life can afford."
(DR SAMUEL JOHNSON 1777)

MSN andrea.poretti(at)hotmail.it

31-01-2006 08:20
Click Here to See the Profile for Skilotto83 Click here to Send Skilotto83 a Private Message Find more posts by Skilotto83 Add Skilotto83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Von Neumann
.illuminato.

User info:
Registered: Oct 2005
Posts: 188 (0.03 al dì)
Location: Brianza
Corso: Comunicazione Digitale
Anno: Domini
Time Online: 1 Day, 14:39:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Bbella Toni!!! Viuuuulennza! :D

31-01-2006 08:38
Click Here to See the Profile for Von Neumann Click here to Send Von Neumann a Private Message Find more posts by Von Neumann Add Von Neumann to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
trygun82
.primate.

User info:
Registered: Jun 2002
Posts: 69 (0.01 al dì)
Location: Nova Milanese
Corso: Comunicazione Digitale
Anno:
Time Online: 16:38:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma il clone fa parte dell'interfaccia cloneable, quindi bisogna estendere Istruzione per usarlo, giusto?

__________________
"Se qualcuno non ti sorride, sii generoso e offrigli un sorriso.
Nessuno ha più bisogno di un sorriso di chi non può sorridere agli altri"

"Grattatio pallorum non est superstitio, sed remedium bonum contra omnia mala!"

31-01-2006 13:44
Click Here to See the Profile for trygun82 Click here to Send trygun82 a Private Message Visit trygun82's homepage! Find more posts by trygun82 Add trygun82 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elias86
.precettore.

User info:
Registered: Nov 2005
Posts: 86 (0.01 al dì)
Location: Lissone
Corso: Comunicazione Digitale
Anno: 4
Time Online: 1 Day, 0:08:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by trygun82
Ma il clone fa parte dell'interfaccia cloneable, quindi bisogna estendere Istruzione per usarlo, giusto?


devi fare:
code:
class Istruzione implements Cloneable


così funziona ma nn so se è una soluzione giusta o se ce ne sono altre.. stò andando un pò a tentativi con stò progetto c'è da sclerare!!!:twisted:

__________________
Vendo libri di Matematica discreta (eserciziario) e Informatica applicata al suono
Cerco URGENTEMENTE appunti del corso di "Economia e gestione dell'impresa" della prof.ssa Ripamonti dell'A.A. 2010-2011 chi li avesse mi contatti per favore avrei bisogno di fotocopiarli. Grazie.

31-01-2006 23:13
Click Here to See the Profile for elias86 Click here to Send elias86 a Private Message Visit elias86's homepage! Find more posts by elias86 Add elias86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
trygun82
.primate.

User info:
Registered: Jun 2002
Posts: 69 (0.01 al dì)
Location: Nova Milanese
Corso: Comunicazione Digitale
Anno:
Time Online: 16:38:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Così ci ho già pensato, la mia perplessità è se per implementarlo vuole che si usi quello già interfacciato o vuole che ne creiamo uno nuovo da zeo.

__________________
"Se qualcuno non ti sorride, sii generoso e offrigli un sorriso.
Nessuno ha più bisogno di un sorriso di chi non può sorridere agli altri"

"Grattatio pallorum non est superstitio, sed remedium bonum contra omnia mala!"

31-01-2006 23:43
Click Here to See the Profile for trygun82 Click here to Send trygun82 a Private Message Visit trygun82's homepage! Find more posts by trygun82 Add trygun82 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi....istruzione è una classe astratta perchè contiene metodi astratti.....non possiamo applicare un'interfaccia.....e poi secondo me dobbiamo crearlo noi un metodo che cloni e non usarne uno già pronto no?.......

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

01-02-2006 10:20
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi usate l'interfaccia..........è giusto così

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

01-02-2006 11:01
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
WillyWonka
.consigliere.

User info:
Registered: Oct 2005
Posts: 142 (0.02 al dì)
Location: Desio
Corso: COM DIG
Anno: terzo
Time Online: 1 Day, 13:17:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

BELLA TONI!!

01-02-2006 14:51
Click Here to See the Profile for WillyWonka Click Here to See the Blog of WillyWonka Click here to Send WillyWonka a Private Message Find more posts by WillyWonka Add WillyWonka to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io non ho usato l'interfaccia anche perchè nonè richiesta e funziona lo stesso..

01-02-2006 15:10
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by sbrandu
Io non ho usato l'interfaccia anche perchè nonè richiesta e funziona lo stesso..


Potresti per favore postare come fai a creare il metodo clone()?
Logicamente non ti chiedo il codice ma solo gli elementi essenziali da mettere nella classe istruzione e in quelle estese....

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

01-02-2006 15:31
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il clone() nella classe astratta Istruzione è solo dichiarato..
nelle sottoclassi che estendono Istruzione io ho implementato i vari clone facendo una copia degli oggetti correnti utilizzando il metodo clone e facendo il casting..

01-02-2006 16:56
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anch'io l'ho già fatto così ma non so se è giustissimo...........mi sembra una cosa troppo banale......daltronde il metodo già non serve a nulla nel progetto........tu hai sentito in giro ke va bene?

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

01-02-2006 17:05
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 21:47.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.053 seconds (80.78% PHP - 19.22% MySQL) con 28 query.