JAVA OOP - Using static variable example

Опубликовано: 04 Октябрь 2024
на канале: SIMPLECODE
147
3

Another simple example of using static variable in java`s Object Oriented Programming (OOP). We`ll define a Person class and give it a static variable which will hold a total number of Person objects and will be used to "assign" new Persons ID numbers. It`s very basic java stuff.
=====================================
SUBSCRIBE FOR MORE: http://goo.gl/bMexAI
=====================================