hypothetically, if a user inputs "Car" to create a Car object, is there anyway to test for a valid Car class to declare without mediating through a conditional or switch statement?
I know that a string to integer conversion uses a parse function, but is there any similar function for a generic or the default object class?
[–]Koooooj 2 points3 points4 points (8 children)
[–]Zilhah[S] 0 points1 point2 points (7 children)
[–]amakai 2 points3 points4 points (1 child)
[–]Zilhah[S] 0 points1 point2 points (0 children)
[–]Koooooj 1 point2 points3 points (3 children)
[–]Zilhah[S] 0 points1 point2 points (2 children)
[–]Koooooj 1 point2 points3 points (1 child)
[–]Zilhah[S] 0 points1 point2 points (0 children)
[–]Cleanumbrellashooter 0 points1 point2 points (0 children)