Classes in JScript – Part III: Class Hierarchy and Data Encapsulation

In this post I will be discussing how one can achieve Class Hierarchy and Data Encapsulation in JScript. I will take the same example that was used for the first and second parts and will keep updating it as and when required.   function Rectangle (ht, wt) {                 this.height = ht;                 this.width=wt; }…

11

Classes in JScript – Part II: Instance Properties / Methods & Class Properties / Methods

  In this post I will discuss more about the Instance Properties & Instance Methods and Class Properties and Class Methods. I will take the same example that was used for the first part and will keep updating it as and when required.   function Rectangle (ht, wt) {                 this.height = ht;                 this.width=wt;…

13

Classes in Jscript – Part I

I am Ritesh Parikh and have recently moved to Jscript team as a SDET. While starting on Jscript I had a lot of questions. One of them was – Is JScript object oriented? For a language to be object oriented, it has to provide support for the following: ·        A mechanism for grouping related functionality…

9