what is class and object explain with example?

Answer Posted / dsr

class is templet of an object. object is a instatiate the
class.Object is super class of all objects.

Class One{ //class

public void getMethod(){

Console.WriteLine("one....");

}

public static void main(String[] args)
{
One one = new One(); //one is an object of that class.
console.writeLine();
}

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I create a application?

503


Name some changes done since version 3.0?

545


What is the difference between machine config vs. Web config : Dot net architecture

487


Different types of authentication modes in .net framework ?

525


What is a managed code? : Dot net architecture

545






What is Com Callable wrapper?when it will created?

518


What is new in the .net 2.0 class library?

687


Define pipelining? : Dot net architecture

595


Explain the difference between inprocess vs out process session state : Dot net architecture

511


Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

504


What are end points, contract, address and bindings?

517


can u give me real example of how web.config overrides the machine.config file?

1277


Define an interrupt? : Dot net architecture

546


What is .net mobile input validation. : Microsoft dot net mobile

516


What is the difference between absolute expiration and sliding-time expiration?

525