import Subject from "./Subject" ; export default class RealSubject implements Subject { private s : string ; constructor ( s ) { this . s = s ; } public doAction ( ) { console . log ( "`doAction` of RealSubject" , this . s , "is being called!" ) ; } }