• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

How do I make a class a single-instance throughout my game?

Hi all,

The question is in the title itself. I'm not sure of how to do it properly. :(

Some told me to use "static" before the class keyword

so it's like

static class myClass {
}

May I ask, is that the way?
Thanks!
0
thrawn80
Asked:
thrawn80
2 Solutions
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now