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
Can I create my own metadata attributes?
What is .net mobile lists. : Microsoft dot net mobile
What is cache coherency and how is it eliminated? : .NET Architecture
How do we do authentications using atlas?
What are the major differences between services and web services?
What is textbox control of .net mobile? : Microsoft dot net mobile
Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile
Explain
What is the .net class that allows the retrieval of a data element using a unique key?
What other than biginteger has been introduced in system.numerics namespace?
Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile
Explain the race around condition? : .NET Architecture
When do I need to use gc.keepalive?
What is .net mobile automatic paging? : Microsoft dot net mobile
Explain about .net garbage collector?