Organizing Code into Classes

Everyone
  • 7 videos | 46m 37s
  • Earns a Badge
Rating 4.2 of 5 users Rating 4.2 of 5 users (5)
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

  • 8m 9s
  • 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 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 5.0 of 2 users Rating 5.0 of 2 users (2)
Rating 4.5 of 53 users Rating 4.5 of 53 users (53)