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 N - Z > Programmazione > [PROGRAMMAZIONE] Help 3^ Progettino A.A.04/05 Thread Rating: 1 votes, 5.00 average.
Pages (39): « First ... « 6 7 8 9 [10] 11 12 13 14 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by elpampero
Scusate ma la sequenza con i parametri si puo' creare nel costruttore?


Scusa, puoi essere più specifico?

19-01-2004 09:57
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

La classe astratta ha un metodo astratto public double[] setParametri(). Tale metodo va implementato nella sottoclasse e deve restituire un array di parametri.

L'array è costruito a partire da una sequenza....questa sequenza dove posso costruirla?

19-01-2004 10:02
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by elpampero
La classe astratta ha un metodo astratto public double[] setParametri(). Tale metodo va implementato nella sottoclasse e deve restituire un array di parametri.

L'array è costruito a partire da una sequenza....questa sequenza dove posso costruirla?


Nel costruttore...

Last edited by T_M_P on 19-01-2004 at 10:15

19-01-2004 10:11
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma scusate:

io posso confrontare 2 oggetti solo attraverso il loro indirizzo ?



obj1.equals(obj2)


per intenderci


o devo aprire i due oggetti e confrontarne le carateristiche una ad una ?


if(obj1.caratteristica_1 == obj2.caratteristica2) return true;


etc....

19-01-2004 10:12
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mark
ma scusate:

io posso confrontare 2 oggetti solo attraverso il loro indirizzo ?



obj1.equals(obj2)


per intenderci


o devo aprire i due oggetti e confrontarne le carateristiche una ad una ?


if(obj1.caratteristica_1 == obj2.caratteristica2) return true;


etc....


Il confronto di oggetti attraverso il loro indirizzo restituisce true se le variabili si riferiscono allo stesso oggetto.

In questo caso sono due oggetti diversi, quindi devi controllare le caratteristiche (c'è anche suggerito nel PDF)..

19-01-2004 10:17
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io qui mi sto perdendo qualche pezzo...:pensa:....

__________________
Il Pega
www.pegasus83.com

19-01-2004 10:31
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ROYV
.primate.

User info:
Registered: Sep 2003
Posts: 74 (0.01 al dì)
Location: limbiate
Corso: Informatica
Anno: 1
Time Online: 1 Day, 19:36:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Nel file "unico" da consegare al prof, bisogna includere anche il testo di Test e Figura3D ?

19-01-2004 10:36
Click Here to See the Profile for ROYV Click here to Send ROYV a Private Message Find more posts by ROYV Add ROYV to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by ROYV
Nel file "unico" da consegare al prof, bisogna includere anche il testo di Test e Figura3D ?


Test no, ma Figura3D non fa male... :)

19-01-2004 10:39
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bravo Yankee
The end. Thanks to all

User info:
Registered: Oct 2003
Posts: 1037 (0.13 al dì)
Location: Provincia di Milano
Corso: Informatica
Anno: 0
Time Online: 29 Days, 0:42:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Secondo me no, anche perché Figura3D è dichiarata public e dove essere messa in un file a parte di nome Figura3D....Quei due sono file che Grossi DEVE avere per testare le nostre classi...

19-01-2004 10:42
Click Here to See the Profile for Bravo Yankee Click here to Send Bravo Yankee a Private Message Find more posts by Bravo Yankee Add Bravo Yankee to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bravo Yankee
The end. Thanks to all

User info:
Registered: Oct 2003
Posts: 1037 (0.13 al dì)
Location: Provincia di Milano
Corso: Informatica
Anno: 0
Time Online: 29 Days, 0:42:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa, TMP, come fai a mettere Figura3D() in un file unico con gli altri?

19-01-2004 10:42
Click Here to See the Profile for Bravo Yankee Click here to Send Bravo Yankee a Private Message Find more posts by Bravo Yankee Add Bravo Yankee to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Perchè mi dice che la classe sequenza non puo' essere applicata a un double???????

19-01-2004 10:46
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lorybu
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 319 (0.04 al dì)
Location: busto arsizio
Corso: informatica
Anno: Terzo
Time Online: 2 Days, 1:20:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io utilizzo la Classe Insieme ma com'è che quando creo un istanza di Sfera ad esempio mi becco un bell'errorazzo sulla chiamata del costruttore??

__________________
Le frasi mitiche...
::mm...ma nel compito mette anche le domande??::
::.. compilare compila... è tutto corretto, il fatto è che non fa quello che dico io.. cosa potrebbe essere?::
::Il fatto è che io le cose le so...poi dopo quando sono all'interrogazione non mi vengono...::

19-01-2004 10:46
Click Here to See the Profile for lorybu Click here to Send lorybu a Private Message Find more posts by lorybu Add lorybu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Bravo Yankee
Scusa, TMP, come fai a mettere Figura3D() in un file unico con gli altri?


Già!!!

E' perchè il nome del file è lo stesso dell'unica classe public.... Figura3D!!!

:-)

Comunque hai ragione, non serve..

19-01-2004 10:48
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
linkjr
.primate.

User info:
Registered: Oct 2003
Posts: 73 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 14:00:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by elpampero
La classe astratta ha un metodo astratto public double[] setParametri(). Tale metodo va implementato nella sottoclasse e deve restituire un array di parametri.

L'array è costruito a partire da una sequenza....questa sequenza dove posso costruirla?


Scusa, ma non esiste il metodo di cui parli nella classe astratta.
Il metodo setParametri non restituisce l'array, ma lo riceve come argomento... :?

__________________
Andrea

19-01-2004 10:52
Click Here to See the Profile for linkjr Click here to Send linkjr a Private Message Find more posts by linkjr Add linkjr to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Hai ragione volevo dire getParametri....

19-01-2004 10:53
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 08:30.    Post New Thread    Post A Reply
Pages (39): « First ... « 6 7 8 9 [10] 11 12 13 14 » ... Last »   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.123 seconds (43.68% PHP - 56.32% MySQL) con 23 query.