Example
static public void main (String args[ ]) {
Employee v1= new Employee(“Millett”); System.out.println("No. of emps" + v1.noEmps);
Employee v2= new Employee(“Ubik”); System.out.println("No. of emps" + v2.noEmps);
}
Previous slide
Next slide
Back to first slide
View graphic version