encapsulation_problem_js
by upigilam
JavaScript
// example of encapsulation of methods and variables
var animal = function () {
this.type = "dog";
this.Sound = "Bark";
}
by upigilam
// example of encapsulation of methods and variables
var animal = function () {
this.type = "dog";
this.Sound = "Bark";
}