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

+4 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 ago in CSC 305 Fall 2024 by (122 points)

1 Answer

+4 votes

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

answered ago by (567 points)
...