what is class and object explain with example?
Answer Posted / shubham saurabh
Object has states and behaviours. An object is instance of object.Exp:states-colour,name,breed and behaviour-wagging,barking,eating.
A Class is a template/blue print that describes the behaviour of object.
public class Dog
{
string breed;
int age;
string colour;
void barking()
{
}
void hungry(){
}
void sleeping(){
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between inprocess vs out process session state : Dot net architecture
What re interop services?
What is msil, and why should my developers need an appreciation of it if at all?
What is the purpose of Treeview control?
What is .net mobile automatic paging? : Microsoft dot net mobile
What is the difference between metadata and menifest ?
Explain about code access security?
Explain hard disk and what is its purpose? : Dot net architecture
What are the major differences between services and web services?
Explain the five stages in a dlx pipeline? : Dot net architecture
What is private constructor? And it's use?
Define a virtual memory? : Dot net architecture
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.
What is the mesi? : .NET Architecture
What is the problem with .net generics?