can we access main() using objects?

Answer Posted / ravi maheshwari

We can't access main() using objects. Because Main() is a
Static function. And Static function is call our self when
page is load.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tochararray in c#?

452


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

500


What is anonymous types in c#?

504


What does mean before a string in c#?

521


What is a clr host?

558






What is meant by desktop application?

501


What is data annotation in c#?

509


What is difference between value and reference types in C#.NET

523


What is private and shared assembly?

550


What is attribute c#?

437


What is the major difference between a custom control and user control?

561


What is difference between const and static in c#?

498


List out the differences between array and arraylist in c#?

527


Explain the role of Garbage collector and its generations?

523


Can struct be static in c#?

515