Skip to content

Instantly share code, notes, and snippets.

@aershov24
Created September 23, 2020 06:02
Show Gist options
  • Save aershov24/7a255525233345d78830ba08b0a1280a to your computer and use it in GitHub Desktop.
Save aershov24/7a255525233345d78830ba08b0a1280a to your computer and use it in GitHub Desktop.
Markdium-23 PowerShell Interview Questions DevOps Engineers Must Master
class Contact
{
# Optionally, add attributes to prevent invalid values
[ValidateNotNullOrEmpty()][string]$First
[ValidateNotNullOrEmpty()][string]$Last
[ValidateNotNullOrEmpty()][string]$Phone
# optionally, have a constructor to
# force properties to be set:
Contact($First, $Last, $Phone) {
$this.First = $First
$this.Last = $Last
$this.Phone = $Phone
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment