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 instance
    describe constructors, how they can be identified, and their purpose
    recognize how to navigate in Visual Studio with Solution Explorer and in Class View
    differentiate 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 scope
    recognize how to hide private fields behind public methods and why you would do it
    recognize the relationship between reference variables, the new operator, the stack, and the heap

IN THIS COURSE

  • Playable
    1. 
    Classes, Methods, and Instances
    8m 9s
    UP NEXT
  • Playable
    2. 
    Using Constructors
    7m 59s
  • Locked
    3. 
    Navigating Solution Explorer and Class View
    5m 26s
  • Locked
    4. 
    Public and Private Methods
    9m 23s
  • Locked
    5. 
    Using Public and Private Methods
    3m 55s
  • Locked
    6. 
    Hiding Fields behind Methods
    5m 32s
  • Locked
    7. 
    Reference Variables
    6m 14s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.