About static field and constructor. Write a program that gives the number instances of class created
Sigiloso
Create a class, use a static field to count the number of instances. Increment the static field inside a constructor. Everytime instance is created static field gets incremented until the life time of the program, the value will be stored.