CLASS

Unknown | 5:49 AM |

Class consist of methods and variables.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        class student
        {
            int rno;
            string name, address;
            public void getdata(int r, string n, string add)
            {
                rno = r;
                name = n;
                address = add;

            }
            public void display()
            {
                Console.WriteLine("ROLL NUMBER: "+rno.ToString());
                Console.WriteLine("Name: " + name);
                Console.WriteLine("Address: " + address);
            }
        }
        static void Main(string[] args)
        {
            student sd = new student();
            Console.WriteLine("enter no,name,address");
            sd.getdata(int.Parse(Console.ReadLine()), Console.ReadLine(), Console.ReadLine());
            sd.display();
            Console.WriteLine("end");
            Console.ReadLine();
        }
    }
}

Category:

About http://dotnetvisual.blogspot.in/:
DOT NET TO ASP.NET is a web application framework marketed by Microsoft that programmers can use to build dynamic web sites, web applications and web services. It is part of Microsoft's .NET platform and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime, allowing programmers to write ASP.NET code using any Microsoft .NET language. create an application very easily ....