# \#non-static-method

**URL:** https://verificationacademy.com/forums/tag/non-static-method/4544.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Need clarification on static method and non static method](https://verificationacademy.com/forums/t/need-clarification-on-static-method-and-non-static-method/32163)

<div class="topic-metadata">

**Author:** [@Somu](https://verificationacademy.com/forums/u/Somu)\
**Replies:** 11\
**Last updated:** [October 12, 2025, 3:33pm UTC](https://verificationacademy.com/forums/t/need-clarification-on-static-method-and-non-static-method/32163 "2025-10-12T15:33:23Z")

</div>

what is the difference between static class method with automatic variable lifetime and non static class method with static variable lifetime and why we are creating objects for non static class method. eg: static task …

---

## [Static variable inside a non static function](https://verificationacademy.com/forums/t/static-variable-inside-a-non-static-function/35695)

<div class="topic-metadata">

**Author:** [@atalur](https://verificationacademy.com/forums/u/atalur)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 12:04am UTC](https://verificationacademy.com/forums/t/static-variable-inside-a-non-static-function/35695 "2019-02-03T00:04:12Z")

</div>

A class has a function that is non-static. However, there is a member declared inside the function as static. What would the behavior be in this case? class ABC; function check; static cfg\_var; if (cfg\_var==nu…

---

## [Why is my code not failing when accessing non static method from not static class?](https://verificationacademy.com/forums/t/why-is-my-code-not-failing-when-accessing-non-static-method-from-not-static-class/29351)

<div class="topic-metadata">

**Author:** [@srividya2u](https://verificationacademy.com/forums/u/srividya2u)\
**Replies:** 4\
**Last updated:** [February 19, 2015, 3:39pm UTC](https://verificationacademy.com/forums/t/why-is-my-code-not-failing-when-accessing-non-static-method-from-not-static-class/29351 "2015-02-19T15:39:33Z")

</div>

Hi, In class\_B I am accessing non-static method from non-static class\_A. I have not "new"d class\_A in class\_B. How is my code working without fail? I want to understand the background concept. Please help- Thx. modul…
