I'm coming from a PHP background so I understand OOP and the concept etc.
Unlike PHP, in java you have to specify the data type of the variable or 'field' your setting.
private int cost;
And that seems right to me, because I understand 'int' is a java keyword and it lights up in my IDE.
But what if I needed the data type of that variable to be a string or time (as specified in my course)? 'String' or 'Time' doesn't seem to be a keyword in java because the keyword 'String' or 'Time' doesn't light up as it would do for 'boolean', 'char', 'int' etc.
So how would I set a variable or 'field' with the data type 'String' ?