class Employee
{
stat9c Method1()
static Method2(ref a)
stat9c Method3(out x)
}
class Employee
{
stat9c Method1()
static Method2(ref a)
stat9c Method3(out x)
}
what will happen & why?
Answer Posted / sisira
it will give complie error bcoz same class name already
declare
Solution:
Make it both class Partial
and stat9c is not key word
please make it static.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can I use .NET components from COM programs?
In .NET how can you solve the DLL Hell problem?
These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.
What is strong name assembly?
What is the use of oops in c#?
Is void a class?
For methods inside the interface why can’t you specify the accessibility modifier?
What is access modifier in c#?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
Can we overload the main method in c#?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.
What is instantiating a class?
What is public, private, protected, internal and internal protected?
How do you specify a custom attribute for the entire assembly?
Distinguish between finally and finalize blocks?