I have a class declared as below
public class a
{
public void add()
{}
}
What is the diference between
a a1 =new a;
and simply
a a1;
Answer Posted / rahul maurya
in a a1=new a memory is allocated to the main function to execute
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Explain about accessibility modifier 'protected internal'?
What is the difference between disposing of () and finalize() methods in c#?
What is a Jagged Array in C#?
What is oledbconnection c#?
Differentiate between object pooling and connection pooling in c#?
Define sealed classes in c#?
What is data types in c#?
Can enum be null c#?
Can abstract class have parameterized constructor?
What is property in c#?
Explain constructor in c#?
What is concrete class in c# with example?
What do you know about WM_CHAR message?
What is parse method in c#?
What is a partial class in c#?