import {Polygon} from './Polygon';

export class Candidate {
  candName: string;
  color: number;
  polygons: Polygon[];

  constructor(candName: string, color: number) {
    this.candName = candName;
    this.color = color;
  }

  polygonHovered(): void {
    this.polygons.map(polygon => (polygon.highlight = true));
  }

  polygonUnhovered(): void {
    this.polygons.map(polygon => (polygon.highlight = true));
  }
}

import {Polygon} from './Polygon';

export class Candidate {
  candName: string;
  color: number;
  polygons: Polygon[];

  constructor(candName: string, color: number) {
    this.candName = candName;
    this.color = color;
  }

  polygonHovered(): void {}

  polygonUnhovered(): void {}
}

--- 
+++ 
@@ -10,7 +10,11 @@
     this.color = color;
   }
 
-  polygonHovered(): void {}
+  polygonHovered(): void {
+    this.polygons.map(polygon => (polygon.highlight = true));
+  }
 
-  polygonUnhovered(): void {}
+  polygonUnhovered(): void {
+    this.polygons.map(polygon => (polygon.highlight = true));
+  }
 }
Add methods for hovering/unvovering over candidate.
