Organizing Code into Classes
- 7 videos | 46m 37s
- Earns a Badge
At this point, much of your code has been written in static methods of the Program class, so now it's time to learn more about .NET classes. You'll start by learning how to choose between static and instance methods. Next, you'll explore the object-oriented nature of C# and how to create a class with a static method. Next, you'll learn about instance methods and how to create instances of FileInfo, as well as explore examples of instance fields and methods. You'll learn about constructors, navigating Solution Explorer and Class View, and using public and private methods. Finally, you'll examine how to hide fields behind methods and the purpose of reference variables. This course was originally created by Global Knowledge (GK).
WHAT YOU WILL LEARN
Describe classes and how to declare them, how to choose between static and instance methods, and how to instantiate an instanceDescribe constructors, how they can be identified, and their purposeRecognize how to navigate in visual studio with solution explorer and in class viewDifferentiate between public and private methods and recognize when to use each
Describe the purpose of the public and private access modifiers and recognize the concept of scopeRecognize how to hide private fields behind public methods and why you would do itRecognize the relationship between reference variables, the new operator, the stack, and the heap
IN THIS COURSE
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.Digital badges are yours to keep, forever.
YOU MIGHT ALSO LIKE
Rating 4.7 of 6 users (6)
Rating 4.5 of 198 users (198)
Rating 4.6 of 37 users (37)