function myFunction1() {
                       document.getElementById("demo").style.color = "red";
                       document.getElementById("p1").style.fontWeight="900";
                      }

function myFunction2() {
                        document.getElementById("demo").style.color = "black";
                        document.getElementById("p1").style.fontWeight="100";
                        document.getElementById("p1").style.color = "black";
                       }

function myFunction3() {
                        document.getElementById("demo").style.color = "blue";
                        document.getElementById("p1").style.color = "blue";
                       }

class Member extends Employee{
    constructor(name, salary, age){
        super(name);
        this.name = name;
        this.salary = salary;
//      this.age = age;            // Note alert age is 29. If comment removed the second class method will override the parent class method (age = 34).
    }

    EmployeeName(){
        alert(`Polymorphism example: Employee Name ${this.name} and salary ${this.salary} and age ${this.age}`);
   }