Skip to content

Commit 3acda26

Browse files
authored
changed files by pdets auto publish service, publishid[b62d07dc-9e81-49f3-a6ba-716535fc6fac] and do [publish].
1 parent 7ce9f87 commit 3acda26

File tree

7 files changed

+19
-18
lines changed

7 files changed

+19
-18
lines changed

learn-pr/wwl-azure/discover-interfaces/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uid: learn.wwl.discover-interfaces.introduction
33
title: Introduction
44
metadata:
55
title: Introduction
6-
description: "Introduction"
6+
description: "Introduction to C# interfaces."
77
ms.date: 02/13/2025
88
author: wwlpublish
99
ms.author: eric

learn-pr/wwl-azure/discover-interfaces/3-create-interface-properties.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uid: learn.wwl.discover-interfaces.create-interface-properties
33
title: Implement interface properties
44
metadata:
55
title: Implement interface properties
6-
description: "Implemnt interface properties in C# code."
6+
description: "Implement interface properties in C# code."
77
ms.date: 02/13/2025
88
author: wwlpublish
99
ms.author: eric

learn-pr/wwl-azure/discover-interfaces/7-knowledge-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ quiz:
2222
explanation: "Correct. Interface properties typically don't have a body; they only define accessors."
2323
- content: "They must be static."
2424
isCorrect: false
25-
explanation: "Incorrect. Interface properties are not required to be static."
25+
explanation: "Incorrect. Interface properties aren't required to be static."
2626
- content: "You're implementing an interface in a class. What must you ensure?"
2727
choices:
2828
- content: "Provide public, non-static implementations for all interface members."
@@ -41,10 +41,10 @@ quiz:
4141
explanation: "Correct. The correct syntax to implement an interface in a class is 'class ClassName : InterfaceName'."
4242
- content: "class ClassName implements InterfaceName"
4343
isCorrect: false
44-
explanation: "Incorrect. The 'implements' keyword is not used in C#; the correct keyword is ':'."
44+
explanation: "Incorrect. The 'implements' keyword isn't used in C#; the correct keyword is ':'."
4545
- content: "class ClassName extends InterfaceName"
4646
isCorrect: false
47-
explanation: "Incorrect. The 'extends' keyword is not used in C#; the correct keyword is ':'."
47+
explanation: "Incorrect. The 'extends' keyword isn't used in C#; the correct keyword is ':'."
4848
- content: "What is a key benefit of using interfaces in C# programming?"
4949
choices:
5050
- content: "They allow for better code organization and flexibility."
@@ -55,4 +55,4 @@ quiz:
5555
explanation: "Incorrect. Interfaces don't allow multiple inheritance of classes; they allow a class to implement multiple interfaces."
5656
- content: "They provide default implementations for all members."
5757
isCorrect: false
58-
explanation: "Incorrect. Interfaces may define default implementations for some members starting with C# 8.0, but this is not their primary benefit."
58+
explanation: "Incorrect. Interfaces may define default implementations for some members starting with C# 8.0, but this isn't their primary benefit."

learn-pr/wwl-azure/discover-interfaces/includes/1-introduction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In this module, you learn how to design an interface with properties in .NET, de
1313

1414
## Prerequisites
1515

16-
- Visual Studio Code installed with th3 C# Dev Kit
17-
- Basic knowledge of the Visual Studio Code IDE
18-
- Basic understanding of the C# programming language
19-
- Familiarity with classes
16+
- Visual Studio Code installed with the C# Dev Kit.
17+
- Basic knowledge of the Visual Studio Code IDE.
18+
- Basic understanding of the C# programming language.
19+
- Familiarity with classes.

learn-pr/wwl-azure/discover-interfaces/includes/2-understand-interfaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ An interface is like a to-do list or a contract. It outlines what jobs need to b
44

55
Each of them - the car, the person, and the horse - has its own unique way of moving. An interface could be used to define the contract requirement "You need to be able to move," but the interface doesn't define how to move.
66

7-
### Parts of an Interface
7+
### Parts of an interface
88

99
In C#, an interface outlines the required properties and methods. An interface doesn't hold any data itself, but it does specify what kind of information should be provided through properties. For instance, in a "Move" interface, 'X' and 'Y' could be properties, representing location coordinates. These properties enable the retrieval or modification of their values.
1010

1111
Additionally, interfaces define methods, which are actions that can be performed. However, they don't provide the implementation for these methods. For example, the "Move" interface could include a contract requiring a "Dance" method. However, what exactly happens when the "Dance" method is called by the objects that use this interface, whether it's a car, person, or horse.
1212

13-
### Use an Interface
13+
### Use an interface
1414

1515
To utilize an interface, entities like a car, a person, or a horse from the "move" example adopt it as part of their functionality. The car, for instance, needs to understand how to perform all the tasks listed in the interface. This process of adopting an interface by the car is known as 'implementing' the interface. In this process, the car agrees to follow the 'contract' set by the interface, defining its own unique ways to complete the tasks such as moving by "driving." Similarly, the person and the horse would also implement the interface, each defining their own unique ways to 'move' such as "run" or "gallop."
1616

1717
Consider the classes "Person" and "Horse." Both implement the "Move" interface, and it's the responsibility of "Person" and "Horse" classes to define ways to "Move."
1818

1919
In the "Person" class, 'Move' could mean walking, jogging, or running. In the "Horse" class, 'Move' could mean walking, trotting, or galloping. Even though they move in different ways, both classes fulfill the 'Move' job requirement from the "Move" interface.
2020

21-
### Why Use an Interface?
21+
### Why use an interface?
2222

2323
The properties defined by an interface are useful because they ensure that all classes handle information in the same way. An interface makes your related classes more consistent and easier to work with. As long as they all use the same interface, you can write instructions that work with all kinds of different classes.
2424

learn-pr/wwl-azure/discover-interfaces/includes/4-create-interface-methods.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public interface IVehicle
1313
}
1414
```
1515

16-
Note how the `Drive` method is declared without a body in the interface. When adding methods to an interface, include the method's signature in the interface declaration, but not its body. The class implementing the interface provides the method's body."
16+
> [!NOTE]
17+
> How the `Drive` method is declared without a body in the interface. When adding methods to an interface, include the method's signature in the interface declaration, but not its body. The class implementing the interface provides the method's body.
1718
1819
## Construct a class that implements the interface
1920

learn-pr/wwl-azure/discover-interfaces/index.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ abstract: |
2323
2424
- Understand the value of interfaces.
2525
prerequisites: |
26-
- Visual Studio Code installed with the C# Dev Kit
26+
- Visual Studio Code installed with the C# Dev Kit.
2727
28-
- Basic knowledge of the Visual Studio Code IDE
28+
- Basic knowledge of the Visual Studio Code IDE.
2929
30-
- Basic understanding of the C# programming language
30+
- Basic understanding of the C# programming language.
3131
32-
- Familiarity with classes
32+
- Familiarity with classes.
3333
iconUrl: /training/achievements/generic-badge.svg
3434
levels:
3535
- beginner

0 commit comments

Comments
 (0)