C# C# Objects Object-Oriented Programming Fields

David Munoz
David Munoz
Front End Web Development Techdegree Student 1,922 Points

Why do we say map Map = new map? I couldn't find the part where this was introduced.

Sorry if this is an obvious question. What does each map stand for and why is one capitalized? thank you

1 Answer

<noob />
<noob />
16,316 Points

in C# and in other programming languages u instaniate an object with the keyword "new" followed by the name of the object ur instatiating. for example i have class named "Car". to get access to the "Car" class methods in another file ill need to create a new object of type Car.

Car variableName = new Car();

lets say i have a method called "drive". because i have i created an object of type Car i can use it like that:

variableName.drive();
``