Skip to content

Commit 8ce99c4

Browse files
authored
Merge pull request #49997 from wwlpublish/986f49a14e4db0975577ec6a78b8b4ce1fddee2df81edbc6f3e1f6901d8ab3f9-live
Modules/M02-apply-interfaces-code
2 parents f43cc1d + 5132203 commit 8ce99c4

8 files changed

+16
-16
lines changed

learn-pr/wwl-azure/apply-interfaces-code/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction to interface application in C# code."
7-
ms.date: 02/17/2025
7+
ms.date: 04/15/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit

learn-pr/wwl-azure/apply-interfaces-code/2-explore-default-interface-implementation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Explore default interface implementation
44
metadata:
55
title: Explore default interface implementation
66
description: "Explore default interface implementation in C# code."
7-
ms.date: 02/17/2025
7+
ms.date: 04/15/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit

learn-pr/wwl-azure/apply-interfaces-code/3-define-method-interface-parameter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Define a method with an interface as a parameter
44
metadata:
55
title: Define a method with an interface as a parameter
66
description: "Define a method with an interface as parameter in C# code."
7-
ms.date: 02/17/2025
7+
ms.date: 04/15/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit

learn-pr/wwl-azure/apply-interfaces-code/4-learn-system-defined-interfaces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Learn to use system defined interfaces
44
metadata:
55
title: Learn to use system defined interfaces
66
description: "Learn to use system defined interfaces in C# code."
7-
ms.date: 02/17/2025
7+
ms.date: 04/15/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit

learn-pr/wwl-azure/apply-interfaces-code/5-exercise-create-flexible-code-with-interfaces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Exercise: Create flexible code with interfaces'
44
metadata:
55
title: 'Exercise: Create flexible code with interfaces'
66
description: "Exercise: Create flexible code with interfaces in C# code."
7-
ms.date: 02/17/2025
7+
ms.date: 04/15/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit

learn-pr/wwl-azure/apply-interfaces-code/6-knowledge-check.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Module assessment
44
metadata:
55
title: Module assessment
66
description: "Knowledge check"
7-
ms.date: 02/17/2025
7+
ms.date: 04/15/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit
@@ -16,15 +16,15 @@ quiz:
1616
questions:
1717
- content: "What is a key benefit of using default implementations in interfaces?"
1818
choices:
19-
- content: "They allow for code reuse across different implementations."
20-
isCorrect: true
21-
explanation: "Correct. Default implementations enable sharing common functions across different classes without copying code, promoting code reuse."
2219
- content: "They automatically apply to all classes without any need for implementation."
2320
isCorrect: false
2421
explanation: "Incorrect. Classes must still implement the interface and can choose to use or override the default methods."
2522
- content: "They prevent any changes to the interface once defined."
2623
isCorrect: false
2724
explanation: "Incorrect. Default implementations actually allow adding new methods to interfaces without breaking existing implementations."
25+
- content: "They allow for code reuse across different implementations."
26+
isCorrect: true
27+
explanation: "Correct. Default implementations enable sharing common functions across different classes without copying code, promoting code reuse."
2828
- content: "What is the purpose of the IDisposable interface in C#?"
2929
choices:
3030
- content: "To release unmanaged resources."
@@ -38,12 +38,12 @@ quiz:
3838
explanation: "Incorrect. The IEnumerable interface is used for iterating over collections, not releasing unmanaged resources."
3939
- content: "What is the main advantage of using system-defined interfaces like IEnumerable and IDisposable in C#?"
4040
choices:
41+
- content: "They prevent the need for any implementation in classes."
42+
isCorrect: false
43+
explanation: "Incorrect. Classes implementing system-defined interfaces must still provide implementations for the interface methods."
4144
- content: "They provide standard methods that ensure consistent behavior across different types."
4245
isCorrect: true
4346
explanation: "Correct. System-defined interfaces provide standard methods that can be implemented across different types, ensuring uniformity and predictability in behavior."
4447
- content: "They allow for the automatic generation of code."
4548
isCorrect: false
46-
explanation: "Incorrect. System-defined interfaces do not automatically generate code; they provide standard methods for consistent behavior."
47-
- content: "They prevent the need for any implementation in classes."
48-
isCorrect: false
49-
explanation: "Incorrect. Classes implementing system-defined interfaces must still provide implementations for the interface methods."
49+
explanation: "Incorrect. System-defined interfaces do not automatically generate code; they provide standard methods for consistent behavior."

learn-pr/wwl-azure/apply-interfaces-code/7-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Summary
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 02/17/2025
7+
ms.date: 04/15/2025
88
author: wwlpublish
99
ms.author: eric
1010
ms.topic: unit

learn-pr/wwl-azure/apply-interfaces-code/index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
### YamlMime:Module
22
uid: learn.wwl.apply-interfaces-code
33
metadata:
4-
title: Apply interfaces in code
4+
title: Apply Interfaces in Code
55
description: "Discover how default implementations in interfaces enable you to add new methods directly into an interface and provide a default implementation."
6-
ms.date: 02/17/2025
6+
ms.date: 04/15/2025
77
author: wwlpublish
88
ms.author: eric
99
ms.topic: module-intro-to-product

0 commit comments

Comments
 (0)