Tuesday, 10 December 2019

We are reviving

So guys, After the delay we are reviving.

You can wait for as we bring across the latest Skills, interview questions and obviously the C# shortcuts and skills.


With Love,
Aditya

Sunday, 26 August 2012

Friday, 3 August 2012

Multiple Main() in C# programme

Multiple Main in c sharp programme


using System;
class Program
    {
        static void Main()
        {
               Program.Main(4);        

        }
        public static void Main(int x)
        {
            Console.Write(x);

        }
 
}

Using Math.Pow()

Use Math.Pow() method


Use for power like if u wanna value of 2 to the power of 4


using System;
using System.Collections.Generic;
using System.Text;

    class Program
    {
        public static void Main()
        {
              Console.WriteLine(Math.Pow(2, 4));   //means 2 to the power 4 equal 32
        }
 
}

Thursday, 19 July 2012

Use of return keyword in C sharp

Use of return keyword in C sharp


using System;
class car
{

public static int Main()
{
int a=2, b=3, c;
c=a+b;
Console.WriteLine(c);
return 99999; // we can write any value in the range of int
}
}

// here value of int is like a object of int

byte data type

Byte data type

 


Byte Data Type

using System;
class bbb
{
public static void Main()
{
byte a=255; // Range of byte is 0 to 255
Console.WriteLine(a);
}
}

Constructor inside abstract class

Constructor inside abstract class


using System;
public abstract class clock
{
   public abstract void dum();

        public clock()
              {
                  Console.WriteLine("Constructor Called");
           }
}
           public class Ghadi: clock
{  
public override void dum()
{
     Console.WriteLine("Successful Called");
}

class tej
      {
public static void Main()
{
  Ghadi g=new Ghadi();
  g.dum();

                   }
             }
         }