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 the mesi? : Dot net architecture
How to prevent my .NET DLL to be decompiled?
What is ILDASM ?
Explain about cookie less session state? : .NET Architecture
What is the purpose of cache? How is it used? : Dot net architecture
Explain about appdomains?
Explain difference between inprocess vs out process session state? : .NET Architecture
Explain write back and write through caches? : .NET Architecture
what is sessions and cookies take one example simple way to understand
Differnce between managed code and unmanaged code ?
Explain the race around condition? : Dot net architecture
What is cache coherency and how is it eliminated? : .NET Architecture
Explain the types of memory management? : .NET Architecture
i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?
how we can fire event in databound column in datagrid without using button?