Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+8 votes

In Lab 1, in the start() method, there is a line "var label = new Label("Welcome to Rollerama!");" while in the instruction sheet, it said "Label label = new Label("Welcome to Rollerama!");". Can someone differentiate var and Label for me?

asked in CSC 305 Fall 2024 by (138 points)

1 Answer

+7 votes

As far as I know var means variable, it’s just a way to declare a variable without defining its type.

answered by (659 points)
...