Fundamental Programming Structures Structures: Lecture #2
Fundamental Programming Structures Structures: Lecture #2
Instructor: K. Raza
do { for(variable:collection){
//body of loop
Class provides mechanism to achieve data
//statement;
} while(condition); //used for array navigation
encapsulation.
}
Inheritance contd..
class Employee {
public double getSalary() {
return salary;
}
private double salary;
}