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
Define cache? : Dot net architecture
12. Types of polymorphisem[Run and Design Exp.]
Explain the race around condition? How can it be overcome? : Dot net architecture
Explain about metadata?
What is the purpose of cache? How is it used? : Dot net architecture
Explain difference between machine config vs. Web config : Dot net architecture
State the different levels of exceptional safety?
What is the use of web.config?
What is gui programming? : .NET Architecture
What is the mesi? : Dot net architecture
Can I create my own context attributes?
.Net Frame work arch?
How do we do authentications using atlas?
What are public and private assemblies ?
Difference between type constructor and instance constructor?