Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Few question about static class c#

$
0
0

we know that when we declare static class then static class load in memory once when we run our apps. i was asked a wired question in interview and i could not explain very well. the question was 1) why we can not create instance of static class ? i will be glad if anyone explain in detail.

2) how memory is allocated for static class & why static class data stored in stack not in heap ?

looking for details discussion. thanks


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>