This is a good example on Constructor calling in C#and here is the sample codeusing System;using System.Collections.Generic;using System.Text;namespace CheckAbstract{ abstract class AbstractTest { public AbstractTest(int i) { Console.WriteLine("In Abstract" + i.ToString()); } private AbstractTest() { Console.WriteLine("In Abstract"); } } class myclass:AbstractTest { public myclass() : base(1) { Console.WriteLine("In MyClass"); } }}
The good Item on Linqhttp://en.wikipedia.org/wiki/Language_Integrated_Query
This is a good example on Constructor calling in C#
ReplyDeleteand here is the sample code
using System;
using System.Collections.Generic;
using System.Text;
namespace CheckAbstract
{
abstract class AbstractTest
{
public AbstractTest(int i)
{
Console.WriteLine("In Abstract" + i.ToString());
}
private AbstractTest()
{
Console.WriteLine("In Abstract");
}
}
class myclass:AbstractTest
{
public myclass() : base(1)
{
Console.WriteLine("In MyClass");
}
}
}
The good Item on Linq
ReplyDeletehttp://en.wikipedia.org/wiki/Language_Integrated_Query