dimanche 12 avril 2015

Multiple classes in Java


Vote count:

0




So I have a project where I need to randomnly generate numbers to a specified number in Java. I have that part working and it takes user input, writes to a file and reads it. But here is my problem. The last portion of the assignment specifies that it must be in multiple classes. For example my teacher had a similar project where he could incorporate the code from a seperate .java file into the main one. It looked like this ReadFileExample readur = new ReadFileExample();


I was just wondering is that what class inheritance is and how do I incorporate it into my project. I have read the JavaDocs and I am still a little confused



asked 57 secs ago







Multiple classes in Java

Aucun commentaire:

Enregistrer un commentaire