So we want to dynamically instantiate an object (i.e. convert a string to a class constant). Instead of doing this: You can do this: See…...