Trying to create a new instance of the “MortgageData” object.
Professor said to use:
ClassName InstanceName = New ClassName(arg1, arg2, arg3, arg4);
I Used
MortgageData somethingsomething = New MortgageData(ID,principal,apr,term);
Keep getting Error CS1002: ; Expected with the class name after new underlined in red. I’m using visual studio 2008.
Not sure what to do.
For a start, write
newinstead ofNew. C# keywords are case-sensitive, and always in lower-case!