**************practicing

question is mentioned in the comment in the code
error is coming

hello @nmaurya760

made some changes ->

corrrect ur typecasting line. i dont know what u want to do in that line

This code is working fine now

  1. For the problem statement mentioned are v supposed to do this only?
  2. Under what type of design pattern could v classify this code…is it a singleton design pattern??

sorry i cant comment, i m not good in design patterns

Please solve this question its urgent
https://drive.google.com/file/d/1kkYmAZX6aq4_vKMEDxoiZJTi8UgspAjt/view?usp=drivesdk

@nmaurya760. I am reporting this to CB team
U can ask questions from an ongoing Interview

Please don’t do that i didn’t know this thing sorry