top of page

Day 3: C# shocks me....

Updated: Jul 11, 2023

My jaw hung agape, as I looked on in amazement at the next lesson I was doing with codecademy. It was nothing like I had expected; methods, arrays, classes and objects were some of the "easier" concepts to wrap one's brain around, the website told me. Distraught but determined, I drove on, my cursor constantly hovering over the "X" button to close the tab, out of the frustration of not being able to understand. Finally, after almost four hours of looking at all sorts of websites, my head began to comprehend what these new concepts meant, and how they were used.


______________________________________________________________________________________________________


What is a method?

A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a method.


What is an array?

Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.


What is a class?

A class is a data structure that may contain data members (constants and fields), function members (methods, properties, events, indexers, operators, instance constructors, finalizers, and static constructors), and nested types.


What is an object?

Object, in C#, is an instance of a class that is created dynamically.




Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page