Visual Studio Code – Error while accessing members of class in main function
What is the error in this code? I tried this code in Visual Studio, and I'm facing an error while running this code. Visual Studio is showing the error on line 29. Point out the error and also explain it,…