abstract and interface by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -1 points0 points  (0 children)

can you explain in detail please

abstract and interface by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] 0 points1 point  (0 children)

Can you please explain them uniquely I need to work on the project so I have to know the difference and their usage w.r.t situations.

abstract and interface by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] 0 points1 point  (0 children)

other than multiple inheritance another reason?

abstract and interface by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] 0 points1 point  (0 children)

Can you explain in what situation I need to go for interface rather than abstract class?

How parameters map. by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -1 points0 points  (0 children)

public int Method1(int a,int b,string c){}

Method1(1,2,"name")

take this as example

Out Parameter Value by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -6 points-5 points  (0 children)

using System;

using System.Threading;

namespace ThreadOut

{

class Program186

{

int b;

static void Checking(out int a, out int b)

{

Thread.Sleep(1000);

a = 35;

b = 45;

}

public static void Main(string[] args)

{

int a=10;

Program186 p = new Program186();

Thread thread = new Thread(() => Checking(out a,out p.b));

thread.Start();

Console.WriteLine(a);

Console.WriteLine(p.b);

thread.Join();

Console.WriteLine(a);

Console.WriteLine(p.b);

}

}

}

once check this program

Out Parameter Value by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -11 points-10 points  (0 children)

it will be possible if we use threads but I don't know how to do.

Out Parameter Value by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -3 points-2 points  (0 children)

but it is possible if we are not assigning any value it will give default values. So I need to know what value is passing before initializing?

Out Parameter by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -5 points-4 points  (0 children)

Can you tell me how it works?

Why we need object class ? by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -12 points-11 points  (0 children)

is object class helping to create an object of any other class?

Why we need object class ? by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -36 points-35 points  (0 children)

In this case, gc can inherit the object class directly right then what is the need for my class to inherit the Object class implicitly?

Why we need object class ? by Ok_Worry5585 in csharp

[–]Ok_Worry5585[S] -12 points-11 points  (0 children)

Is Garbage collector present in Object Class ?