I take that back. I'm totally confused now, after seeing this writing of code being used in my book. In a hurry right and not so sure if I mentioned that
.getDescription got used in a constructor. ...
Type: Posts; User: fahman_khan75@yahoo.com
I take that back. I'm totally confused now, after seeing this writing of code being used in my book. In a hurry right and not so sure if I mentioned that
.getDescription got used in a constructor. ...
Glad to hear that since his method just confused me out! Thank you!
We are learning about how to pass objects into constructors. In our class, we made this following code
public class InventoryItem
{
//fields
private String description;
private int units;
...