Microsoft
Microsoft Logo

Create methods in C# console applications (Get started with C# Part 5) 

  • Offered byMicrosoft

Create methods in C# console applications (Get started with C# Part 5)
 at 
Microsoft 
Overview

Duration

3 hours

Total fee

Free

Mode of learning

Online

Schedule type

Self paced

Difficulty level

Beginner

Official Website

Explore Free Course External Link Icon

Credential

Certificate

Details Icon

Create methods in C# console applications (Get started with C# Part 5)
 at 
Microsoft 
Course details

Skills you will learn
What are the course deliverables?
  • Write your first C# method
  • Create C# methods with parameters
  • Create C# methods that return values
  • Guided project - Plan a Petting Zoo Visit
  • Challenge project - Create a mini-game
More about this course
  • Learn how to create methods for C# console applications. Use parameters and return values to manipulate data across applications. Learn to use named and optional arguments to simplify code.
  • Write your first code using C# (Get started with C#, Part 1)
  • Create and run simple C# console applications (Get started with C#, Part 2)
  • Add logic to C# console applications (Get started with C#, Part 3)
  • Work with variable data in C# console applications (Get started with C#, Part 4)
  • Create methods in C# console applications (Get started with C#, Part 5)
  • Debug C# console applications (Get started with C#, Part 6)

Create methods in C# console applications (Get started with C# Part 5)
 at 
Microsoft 
Curriculum

Write your first C# method

Introduction

Understand the syntax of methods

Create your first method

Create reusable methods

Build code with methods

Complete the challenge

Review the solution

Knowledge check

Summary

Create C# methods with parameters

Introduction

Use parameters in methods

Understand method scope

Use value and reference type parameters

Methods with optional parameters

Complete the challenge

Review the solution

Knowledge check

Summary

Create C# methods that return values

Introduction

Understand return type syntax

Return numbers from methods

Return strings from methods

Return Booleans from methods

Return arrays from methods

Complete the challenge

Review the solution

Knowledge check

Summary

Guided project - Plan a Petting Zoo Visit

Introduction

Prepare for guided project

Exercise - Plan your code using methods

Exercise - Create a method to shuffle an array

Exercise - Create a method with an optional parameter

Exercise - Create a method to display the results

Knowledge check

Summary

Challenge project - Create a mini-game

Introduction

Prepare for challenge

Exercise - Add code to end the game

Exercise - Make the player consume food

Exercise - Add code to modify movement

Knowledge check

Summary

Create methods in C# console applications (Get started with C# Part 5)
 at 
Microsoft 
Entry Requirements

Eligibility criteriaUp Arrow Icon
Conditional OfferUp Arrow Icon
  • Not mentioned

Other courses offered by Microsoft

Free
2 hours
Intermediate
Free
4 hours
Intermediate
Free
5 hours
Beginner
Free
1 hours
Beginner
View Other 1171 CoursesRight Arrow Icon
qna

Create methods in C# console applications (Get started with C# Part 5)
 at 
Microsoft 

Student Forum

chatAnything you would want to ask experts?
Write here...