Advertisement
KodingKid

A person as a Class in C# (with strings, integers, and more!)

Apr 26th, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. class Class1
  2. {
  3.     string person = "John";
  4.     int age = "32";
  5.     public void ageJohn()
  6.     {
  7.         Console.WriteLine(person " is " age)
  8.         }
  9. }
  10. //See some of my other scripts such as my most recent Python and Javascript scripts:
  11. //https://pastebin.com/TK6AqMHk
  12. //https://pastebin.com/yH3GYshu
  13. //Or see more of my C# scripting:
  14. //https://pastebin.com/u4GYShjb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement