How do I pas variables between classes

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • ASP.NET Core

    ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

    Hello all, I am making a hangman game in my discord bot. I want it to tell you how many letters are left after you have guessed a letter correctly. As works similarly to, I cannot store the variables in the modules as the data gets recreated each time to command is called. So this means I will have to create a seperate class to store the variables. However, I do not know how I can call a variable from a different class (in this case the variable is called 'lettersleft')? I apologise if this is a silly question.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts