Encapsulation (computer programming): Difference between revisions

Content deleted Content added
Addbot (talk | contribs)
m Bot: Migrating 9 interwiki links, now provided by Wikidata on d:q1305241 (Report Errors)
Line 45:
 
public class Employee {
private floatBigDecimal salary = new BigDecimal(50000.00);
public floatBigDecimal getSalary() {
return salary;
}
Line 53:
public static void main() {
Employee e = new Employee();
floatBigDecimal sal = e.getSalary();
}
}