25. Is it possible to call the static member through object?

Is it possible to call the static member through object?

  • Yes, of course. We can call static member through object
    But it’s not recommended and instead of that
  • We can call static member through class name because about definition, static data belong to class, not belong to any instance of that class

Leave a Reply

Your email address will not be published. Required fields are marked *