Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the difference between inprocess vs out process session state : Dot net architecture

1082


What re interop services?

1008


What is msil, and why should my developers need an appreciation of it if at all?

1128


What is the purpose of Treeview control?

1010


What is .net mobile automatic paging? : Microsoft dot net mobile

986


What is the difference between metadata and menifest ?

922


Explain about code access security?

1003


Explain hard disk and what is its purpose? : Dot net architecture

952


What are the major differences between services and web services?

932


Explain the five stages in a dlx pipeline? : Dot net architecture

932


What is private constructor? And it's use?

1124


Define a virtual memory? : Dot net architecture

915


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.

956


What is the mesi? : .NET Architecture

1026


What is the problem with .net generics?

1074