why we can't create an object for a static class??
what is the reason behind this?
Answer Posted / pushparaj pentakota (anakapall
static blocks and static classes are executed before
constructor execution but object can be created while
executing the constructor only but static blocks are exected
before executing construtor so we can't create an object on
static classes.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
If you want to convert a base type to a derived type, what type of conversion do you use?
What is a framework in c#?
What is namespace in oops?
How many types of namespaces available in version4?
What are the 2 types of data types available in c#?
How do I trim a space in c#?
What is the use of console readkey ()?
Does unity require coding?
List some of the common data providers for ado.net framework?
Will the following code compile and run?
Are private members inherited in c#?
What does return do in unity?
What is #region in c#?
What is a decimal in c#?
Why abstract class can not be instantiated?