So bar is currently an object Along with the properties A and B. Any functionality can be a constructor; it just will not often sound right. realistic - conscious or expressing recognition of matters since they really are; "a realistic description"; "a realistic view of the chances"; "a realistic appraisal https://projectsingurgaon.code.blog/