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
What is the difference between absolute expiration and sliding-time expiration?
What is IL code, CLR, CTS, GAC & GC?
Which software is used for .net programming?
What is a managed code is dim fs as filestreamobject is a managed code? : .NET Architecture
What is the use of web.config?
Why only boxed types can be unboxed?
Can I customise the trace output?
Explain about .net garbage collector?
What is .net mobile images control. : Microsoft dot net mobile
What is cookie less session?
what are constructors and destructors?
What is application frame host?
What actually happes when you add a something to arraylistcollection ?
What is textview control of .net mobile? : Microsoft dot net mobile
Explain How to improve the cache performance? : Dot net architecture