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
What do you know about machine.config file ?
How can we integrate atlas with web services?
Explain cache? : Dot net architecture
What is textview control of .net mobile? : Microsoft dot net mobile
data types used in validation control
Explain about httpruntime.cach.get(); method?
How is the using() pattern useful? What is idisposable?
What are the major differences between services and web services?
Waht is Dot net Arcitecture
What is cache coherency? : Dot net architecture
What is .net mobile lists. : Microsoft dot net mobile
Define a managed code? : Dot net architecture
What does this do? Gacutil /l | find /i "corillian"
What is a managed code is dim fs as filestreamobject is a managed code? : .NET Architecture
How can we perform data binding in atlas?