Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7835605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:42:42+00:00 2026-06-02T13:42:42+00:00

A static class should not work on an instance of an object. What then,

  • 0

A static class should not work on an instance of an object. What then, identifies an instance of an object being “worked on”? Would this be anything concrete (i.e. pass in new ObjectA() to a a method’s parameters). So if this is what I see, the class should not be static.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T13:42:44+00:00Added an answer on June 2, 2026 at 1:42 pm

    A static class simply means that there is only ONE instance of that object. A Static class simply behaves AS IF there was only one instance of it. Think of it as global; you cannot instantiate any objects of a static class. The values of member variable of the class will retain their value globally and you can ‘work’ on them with member functions.

    As opposed to a static class, with a non-static class you can create new objects and ‘work’ on these objects with member functions:

    vehicle honda = new vehicle();
    honda.fuelup(10);
    honda.value.ToString();
    

    If this were to be a static class:

    vehicle.fuelup(10);
    vehicle.value.ToString();
    

    In the above example we created an object honda, of class type vehicle. We then ‘worked’ on the object with functions. For the static class, we didn’t need to cannot create an object, we just call the class name instead of the object name (like honda).

    To recap:

    • Static = global, one instance
    • Static = global, AS IF it was only one instance (the program itelf?)
    • Non-static = local scope, many instances

    If this doesn’t answer or address the question, please rephrase it with a clear question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why does this not work? Shouldn't each instance simply reference each other once? class
What are the key uses of a Static Generic Class in C#? When should
When creating a repository class, eg. CustomerRepository, should my methods be static? Or should
I noticed the function Object.factory(char[] className) in D. But it does not work like
I have this class, instance of which I create in an AppDomain with no
I'm not sure if this is a trivial questions but in a PHP class:
I've some class with this signature (PHP 5.3): class a { public static function
I am wondering what it would take to make something like this work: using
According to my LINQ book, this slightly altered example should work. Why does it
I built this class to work with PDO, to make SQL queries 'easier' and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.