Skip to content

Commit b807f7a

Browse files
authored
Update 13Encapsulation.js
1 parent 7252fd5 commit b807f7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

OOPS/13Encapsulation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class savingacc extends balanceacc{
3131
transactionlimit=2000;
3232
constructor(name,balance=0){
3333
super(name,balance);
34+
console.log(this.#balance); //ERROR
3435
}
3536
}
3637
class curracc extends balanceacc{

0 commit comments

Comments
 (0)