Currently, I am immersing myself in TypeScript with the guidance of Barasat Ali Syed's Deep Dive.
While exploring Arrow Functions and inheritance, I stumbled upon the following code snippet. Could you please assist me in comprehending the significance of the second :string in this particular line: "(b:string) : string"?
class Adder {
constructor(public a: number) {}
// This function can now be safely passed around
add = (b: string): string => {
return this.a + b;
}
}