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
How can I create a application?
Name some changes done since version 3.0?
What is the difference between machine config vs. Web config : Dot net architecture
Different types of authentication modes in .net framework ?
What is a managed code? : Dot net architecture
What is Com Callable wrapper?when it will created?
What is new in the .net 2.0 class library?
Define pipelining? : Dot net architecture
Explain the difference between inprocess vs out process session state : Dot net architecture
Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile
What are end points, contract, address and bindings?
can u give me real example of how web.config overrides the machine.config file?
Define an interrupt? : Dot net architecture
What is .net mobile input validation. : Microsoft dot net mobile
What is the difference between absolute expiration and sliding-time expiration?