Let’s define some variables

Variables

“Variables are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and ourselves. It is helpful to think of variables as containers that hold information” — LaunchSchool.com

Variable Ussage

There are infinity cases you can use variables in software developmet. One of them is for health-bars to define player’s current health.

Declaring variables in c#

This is how you can declare an int variable for player’s health.

Variables can store States!

Variables can store any kind of information, imagine you have different states for your game and you want to store that.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response