Vote count: 0
I have 3 classes.. class.java, teacher.java, and student.java.. i created an object in class with code like teacher c = new teacher();
... i want to use the object that i created on class in the student.. how can i use it on student class? i tried using other solution, but i got only the solution for using object that created on 1 class... e.g : i create an object on class from class... and i want to use it on student.. not creating object on class from teacher, and use it on student..
asked 1 min ago
Java - Get Object From Another Class
Aucun commentaire:
Enregistrer un commentaire