Hi, I'm working my way through an AP computer science course on
Java and I have some pretty scrubby questions.
First up, I'm working on encapsulation and inheritance right now. However, the way that the book has taught the material, strings and variables are still a new concept to me. So, I've been cruising along until I hit Instance Variables. My one assignment wants me to create a constructor that contains two integers and a
string. When I create a new object, I can enter integers just fine, but I get an error when entering the string saying that I need to declare the variable. I'm pretty sure this involves the use of an instance method, but I'm failing to make a connection. Here's the code if I'm not explaining correctly.
So, I realize I need to create an instance method to define the string, but how would I go about doing that? Every attempt I've made at it left me with a "cannot find symbol - constructor Time()". I hope you guys can help me, and I would be delighted to use this as a place to find resolutions to my many problems with Java.