Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Practicing Methods | Structs & Enumerators
C# Beyond Basics
course content

Conteúdo do Curso

C# Beyond Basics

Practicing Methods

The code contains a struct called Cypher which basically represents a kind of Caesar cipher.

Read the code and fill in the blanks to make sure it works properly. The following is how the final program is supposed to be:

  1. setText method converts the passed text into encoded text and stores it into the field text. This method takes one stringargument calledtext`, and the method does not return any value;
  2. rawText returns the text field content. This method takes no arguments;
  3. decodedText decodes the text field content and returns the result. This method also doesn't take any arguments.
cs

index

Tudo estava claro?

Seção 2. Capítulo 7
We're sorry to hear that something went wrong. What happened?
some-alt