i have problem with my english.... do i have to add the class StudentRecord.java too from the project MyStudentRecordExampleProject to my project?
for example i have my main class, the student.class and the StudentRecord.class in my project.... thats the first point the second point i has declared studentId as you did. the third point... im lost.... do i have to delete the code private static int studentCount = 0; from StudentRecord.java and copy that code into Student.java if i do that i have to move the two methods named getStudentCount, and increaseStudentCount to the Student.java too? On Mon, Feb 9, 2009 at 4:57 AM, <[email protected]> wrote: > > Hi Jon, > > > > I think it means that you have to create a class, the Student class, and > this class needs to have an attribute whose type of data is StudentRecord. > The name of this attribute is "studentRecord". I hope to have solved your > question. > Just to give you an idea of what he means, I reported a part of my Java > code, hoping it could help you to solve the your homework! > > Best Regards, > Mike > __________________________________________________________ > > public class Student { > > /** Creates a new instance of StudentRecord */ > public Student() { > } > // Declare instance variables. > private StudentRecord studentRecord; > private Integer studentId; > > // Declare static variables. > private static int studentCount = 0; > > ..... > ..... > > > _________________________________________________________ > > > > > > > > --------- Original Message -------- > Da: [email protected] > To: [email protected] > <[email protected]> > Oggetto: [java programming] Homework 1014 "Create Your Own Java > Classes" > Data: 09/02/09 06:29 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anyone explain what the instructor is saying in the homework > > when he says: > > > > > > > > ยท > > Create a Student class as following: > > > > o > > The Student class has StudentRecord class as an > > instance variable. Name it as studentRecord. > > > > > > > > I seem to be missing the boat on what he is asking. > > > > > > > > Jon Carlson P.E. > > > > Engineering Director > > > > CC Technics, Inc. > > > > 253-250-1600 cell > > > > 253-473-9295 office > > > > 253-476-2712 fax > > > > [email protected] > > > > www.cctechnics.com > > > > > > > > DISCLAIMER: > > > > This > > message is confidential, intended only for the named recipient(s) and may > > contain information that is privileged or exempt from disclosure under > > applicable law. If you are not the intended recipient(s), you are > notified > that > > the dissemination, distribution or copying of this information is > strictly > > prohibited. If you received this message in error, please notify the > sender > > then delete this message. > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP > autenticato? GRATIS solo con Email.it: http://www.email.it/f > > Sponsor: > Incrementa la visibilita' della tua azienda con l'invio di newsletter e > campagne email marketing. > Con investimento di soli 250 Euro puoi incrementare la tua visibilita' > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8350&d=20090209 > > > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
