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

What is parallel computing?

713


Explain about appdomains?

782


Does .NET runtime offer Deterministic Destruction or not?

764


Explain how does .net mobile work? : Microsoft dot net mobile

661


Explain about validation?

792


any one can explain about projectarchitecture and project approach briefly

2271


What are the types of application software?

711


Explain pipelining? : .NET Architecture

729


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

752


Explain the Lapsed Listener problem in .net

841


Explain about continuable exceptions?

716


Explain what does the term "green architecture" mean? : Dot net architecture

758


What is cache coherency and how is it eliminated? : .NET Architecture

737


how can we achieve language interoperability through CLS? How MSIL works?

832


what are the fundamental and common properties of .net controls?

1826