In a new programming language how can store multiple types of data in a single variable OR is it possible how can store multiple types of data in a single variable in programming langauge
In a new programming language how can store multiple types of data in a single variable OR is it possible how can store multiple types of data in a single variable in a programming language Here In a new programming language how can store multiple types of data in a single variable help you make the new concepts, you are learning a programming Languages really very important: Ideally Yes. If you create an Array of objects. Then it's possible to store any data type with it as an object is the base class. ArrayList can hold multiple types of data, but array doesn't. Variables Variables can be thought of as ‘containers’ for data. Each variable has to have a unique name, so that you can refer back to it in the program. By using variables, we can refer to values that have not yet been defined. For example, we can refer to the speed of the ball in different parts of the game code, but calculate the ball speed later based on different inputs. How a variable is named is mainly