Join Bruce Van Horn for an in-depth discussion in this video Accessing the school class, part of C# Essential Training: 1 Syntax and Object Oriented Programming.
- [Instructor] So, here we are in our Windows Form App,…and what it lacks in beauty…it makes up for in functionality.…Remember our objective here is to test…the class that we've been creating all along.…Also, to see how we can consume this class library…that we've built, not so much to make a beautiful app,…because on that score, we have utterly failed.…But, that's okay, what we want to do next…is we want to test our school class.…So, to do that, I'm going to do that inside of our button,…and in order to get to the button handler for this,…which is the code that runs whenever we click this button,…all you need to do is just double click the button, itself.…
And, what happens here is visual studio…generates some code for us, and in this case…its generated a method called btnPushToTest,…which if you remember, is the name that we gave…to this button, _click, and that's our clue…that we're looking at an event handler…that's responding to the click event.…So, what we really want to do here is…we want to test this school library that we've created.…
Author
Released
1/17/2018- The history of C#
- Setting up your development environment in Visual Studio
- Declaring variables
- Working with strings
- Using mathematical operations
- Creating classes and properties
- Using expressions
- Using static, abstract, and virtual methods
- Building a user interface
- Extending classes
- Working with subclassed objects
- Using the object-oriented features of C#
Skill Level Beginner
Duration
Views
Related Courses
-
C# Object-Oriented Programming Tips and Tricks
with Jesse Freeman58m 39s Intermediate -
Learning C# Algorithms
with Reynald Adolphe1h 28m Beginner -
C#: Delegates, Events and Lambdas
with Joe Marini1h 9m Intermediate -
C# 7 First Look
with Reynald Adolphe1h 9m Beginner
-
Introduction
-
Welcome1m 46s
-
What you should know1m 49s
-
Using the exercise files1m 15s
-
-
1. What Is C#?
-
The history of C#3m 49s
-
Installing Visual Studio3m 31s
-
-
2. Getting Started
-
Understanding C# syntax2m 35s
-
Declaring variables4m 14s
-
Using built-in data types8m 37s
-
Everything is an object4m 55s
-
Working with strings9m 36s
-
String formatters6m 5s
-
Parsing strings as numbers5m 56s
-
Working with dates and times5m 31s
-
-
3. Working with Classes
-
Creating a class4m 39s
-
Namespaces4m 4s
-
Auto-properties3m 3s
-
Creating properties4m 19s
-
Constructors4m 30s
-
Creating methods4m 19s
-
Function bodied expressions2m 35s
-
Static methods1m 26s
-
Overriding ToString5m 21s
-
Creating a user interface5m 59s
-
Accessing the school class4m 58s
-
Working with user input5m 34s
-
Testing ToString3m 44s
-
-
4. Object-Oriented Features
-
Abstract methods4m 58s
-
Testing the abstract method5m 22s
-
Virtual methods3m 55s
-
Preparing for interfaces3m 38s
-
Adding an interface5m 13s
-
Extension methods6m 3s
-
Conclusion
-
Next steps1m 13s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Accessing the school class