This is probably going to be an easy thing but I am having a brain fart. I created an object
Student s = new Student();
I need to store information in that object. I googled it and I can’t find how to code it. I could post the full code but I want to do some of the work myself. I saw some posts online where people were using code I have not learned yet so I’m confusing myself.
Well you need to have member variable in your
Studentclass like :then implement getter and setter :
and finally in your program :
As this is the most basic stuff when it comes to OO programming, I’d really suggest you read some books and tutorial about Java.