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 > [PROGETTO] MyLanguage
Pages (6): « 1 2 3 [4] 5 6 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Brk
.consigliere.

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Avrei un dubbio, posso costruire un array di "istruzione" se non posso istanziare oggetti di quella classe???


BrK

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

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: clone()

Originally posted by unid
Nel clone non basterebbe un return this???

public Object clone(){

return this;

}

così che quando lo richiamo ad esempio in sequenza per riempire l'array elenco farei così:

public Sequenza(Istruzione e){
elenco=e;
...
}


Non credo sia corretto, il motivo è che il metodo "clone" chiamato, poniamo da un oggetto di una classe, non dovrebbe copiare il valore dell'oggetto1 nell'oggetto2, bensì ricrearlo, ovvero, un esempio dovrebbe essere:

public Object clone(){
int a = getValue oggetto_chiamante;
int b = getValue oggetto_chiamante;
return new oggetto_di_classe(a, b):
}

Sennò era un semplice "copy"

BrK

Last edited by ciops on 01-02-2006 at 16:11

26-01-2006 21:30
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk 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

nella classe selezione come faccio a mandare a confronto una stringa variabile con un int?

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

27-01-2006 14:03
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
zyx
.consigliere.

User info:
Registered: Nov 2005
Posts: 127 (0.02 al dì)
Location: Ceriano Laghetto
Corso: comunicazione digitale
Anno: 2° anno
Time Online: 1 Day, 14:12:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate ma clone è un metodo di Istruzione quindi copio le istruzioni. Ma le stringhe oppure gli integer non li copio non si può

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

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io ho dichiarato Istruzione un'interfaccia e richiamo in Sequenza il metodo clone di Object...

Così pare funzionare, il problema è che non so quanto possa esser giusto...

BrK

27-01-2006 15:12
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io ho capito cosa svolge ogni istruzione del main per capire cosa fa realmente questo prog e come lo fa!
non mi è chiaro una cosa cosa serve la System.out.println(s3);

28-01-2006 10:07
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate, ma come si fa il costruttore di Istruzione...sempre se lo si fa!

28-01-2006 13:59
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
vampiro85
.amico.

User info:
Registered: Nov 2005
Posts: 26 (0.00 al dì)
Location:
Corso: COM DIG
Anno: 1
Time Online: 15:22:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

domanda esistenziale...
nella classe Esecuzione... come si fa l' IF se l'operatore(<=, ==, ecc) è una stringa?

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

User info:
Registered: Nov 2005
Posts: 123 (0.02 al dì)
Location:
Corso: Laureato
Anno: Laureato
Time Online: 22:18:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Project

Qualcuno l'ha finito e funziona???? Io l'ho finito Ma ho dei problemi con la classe sequenza....

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

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Exclamation Spiegazioni - Facili Facili -


Dato che ho letto che molta gente ha finito (o quasi)...
Volevo porvi due quesiti che ho fatto ancora all'inizio, ma delle quali non ho mai avuto rixposta!

1- COSA INTENDE IL PROF CON LA PAROLA 'ESEGUI'??
Ad esempio, nella classe 'Sequenza' il profe dice testualmente:
" l'implementazione del metodo esegui della superclasse dovrà
essere fatta in modo da eseguire in sequenza tutte le istruzioni contenute nell'array elenco, dalla prima all'ultima posizione;"

Cosa intende lui per "ESEGUIRE IN SEQUENZA TUTTE LE ISTRUZIONI CONTENUTE NELL'ARRAY"???? Stamparle a video??? BOH!!

2- COME FACCIO A PASSARE COME ARGOMENTO UN ISTRUZIONE SE LA CLASSE ISTRUZIONE E' ASTRATTA E NN PUO' ISTANZIARE???
Ad esempio nella classe 'Sequenza' ho il costruttore che ha come argomenti (Istruzione e[]). Come faccio a passargli in input questo ipotetico array di istruzioni se la classe Istruzione non può avere istanze???????


RIXPOND ME PLEASE!!!!!!!

Last edited by Skioda86 on 30-01-2006 at 08:36

30-01-2006 08:31
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Spiegazioni - Facili Facili -

Originally posted by Skioda86

1- COSA INTENDE IL PROF CON LA PAROLA 'ESEGUI'??
Ad esempio, nella classe 'Sequenza' il profe dice testualmente:
" l'implementazione del metodo esegui della superclasse dovrà
essere fatta in modo da eseguire in sequenza tutte le istruzioni contenute nell'array elenco, dalla prima all'ultima posizione;"
Cosa intende lui per "ESEGUIRE IN SEQUENZA TUTTE LE ISTRUZIONI CONTENUTE NELL'ARRAY"???? Stamparle a video??? BOH!!

Secondo me intende eseguire in java le istruzioni in linguaggio mylanguage che gli hai passsato!
esempio: gli passi una selezione?allora dovrai esegueri la selezione in java utilizzando gli argomenti di selezione
Originally posted by Skioda86

2- COME FACCIO A PASSARE COME ARGOMENTO UN ISTRUZIONE SE LA CLASSE ISTRUZIONE E' ASTRATTA E NN PUO' ISTANZIARE???
Ad esempio nella classe 'Sequenza' ho il costruttore che ha come argomenti (Istruzione e[]). Come faccio a passargli in input questo ipotetico array di istruzioni se la classe Istruzione non può avere istanze???????

Ottima domanda, anche io sono po' in sbattimento su sto punto!
Ne aggiungo anche un altra di domanda...come fate a copiare le variabili che passata ad ogni classe?

30-01-2006 12:06
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lyanne
-perenne paranoia-

User info:
Registered: Oct 2005
Posts: 277 (0.04 al dì)
Location: Milano
Corso: Comunicatio
Anno: 3
Time Online: 3 Days, 5:08:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Progetto praticamente finito. Mancano le eccezioni e un vostro aiuto per la stringa operazione... Come avete fatto a rapportarvi con questa strana stringa che deve contenere differenti cose in base agli eventi??? e soprattutto gli esegui ( ) che hanno a che fare con questa stringa si devono fare con lo switch? ma non si può fare uno switch di stringhe!

help:pccrash:

__________________
some photos of mine

30-01-2006 22:43
Click Here to See the Profile for Lyanne Click Here to See the Blog of Lyanne Click here to Send Lyanne a Private Message Find more posts by Lyanne Add Lyanne to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se intendi la stringa operazione >,<, etc non capisco dove è il problema.
Per quanto riguarda lo switch, io ho usato una serie di if...
ragazzi AIUTIAMOCI

31-01-2006 09:14
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Lyanne
.simpatizzante.

Progetto praticamente finito. Mancano le eccezioni e un vostro aiuto per la stringa operazione... Come avete fatto a rapportarvi con questa strana stringa che deve contenere differenti cose in base agli eventi??? e soprattutto gli esegui ( ) che hanno a che fare con questa stringa si devono fare con lo switch? ma non si può fare uno switch di stringhe!


:teach:Sì, uno switch di stringhe lo si può fare, ma non te lo consiglio perchè non è un modo molto elegante da scrivere!! Diciamo che come richiesto dal profe....
conformità del codice presentato alle regole di buona programmazione

questo metodo non lo è affatto!!!:banana:

Kmq se t riferisci a come poter semplificare uno switch l'unico consiglio che ti posso dare è quello di fare più if annidati mettendo come argomento di confronto tutte le stringhe che vuoi.:D

Ma dato che hai già finito...Non potresti rispondere alle mie domande nel thread "Spiegazione Prof Malchiodi"??!!! NE HO DAVVERO BISOGNO DI SEMPLIFICAZIONI DEL TESTO D'ESAME!!!!:(

__________________
- - {[( KEVIN HIGHT FLY)]} - -

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

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

spenk.85
ragazzi AIUTIAMOCI


ESATTO AIUTIAMOCI.....E qndi rixpondi al thread Spiegazione Prof Malchiodi

__________________
- - {[( KEVIN HIGHT FLY)]} - -

31-01-2006 09:21
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 13:16.    Post New Thread    Post A Reply
Pages (6): « 1 2 3 [4] 5 6 »   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.093 seconds (65.24% PHP - 34.76% MySQL) con 24 query.