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 use of virtual, sealed, override, and abstract.
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 exact procedure. : Dot net architecture
Define an interrupt? : Dot net architecture
Difference between type constructor and instance constructor?
.Net Frame work arch?
What are the new features of .net 2.0?
So what exactly is the configuration file for then?
Use of Enable view state ? if turn off what happen ?
how to add list of items in a web application and win application?
What are different types that a variable can be defined and their scopes ?
What is the difference between metadata and menifest ?
Explain domestic architecture artifacts? : Dot net architecture
Session State and can i store desirialized object in state server, if yes how and if not why.
How do I know when my thread pool work item has completed?
what is inheritancy where u required ?