Access Modifiers || Access Modifiers in TypeScript

In this video,I explained how to use access modifiers in TypeScript. Feel free to comment. For more, please subscribe and press the BELL icon. Please visit my Angular Playlist. Please visit my YouTube Videos. The code is as follows -

access_modifiers_parameter.ts - 
class Point {
  constructor (private x: number, private y: number) {}

  draw(){
    console.log('X: - ' + this.x + ', Y:- ' + this.y);
  }
}

let point = new Point(10,20);
point.draw();


Comments

Popular posts from this blog

Alert Dialog Box in JS || JavaScript Dialog Box

HTML - Frameset Tag in html

Indian Flag || Indian Flag using HTML CSS