Home > Articles > Programming > C#

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Q&A

  1. Should I always try to place code into instance classes rather than static classes?

  1. Not necessarily. As with most things, there are no hard and fast rules. Correctly programming instance classes takes some skill and experience, and programming static is easier for the beginner. If you want to experiment with instance classes, I encourage you to do so. However, don't feel as though you have to place everything into instantiated classes.

  1. I want to create a general class with a lot of miscellaneous methods—sort of a "catchall" class. What is the best way to do this?

  1. If you want to create some sort of utility class, I recommend calling the class something like clsUtility. Then you can use this class throughout your application to access the utility functions.

  • + Share This
  • 🔖 Save To Your Account