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

Define cache? : Dot net architecture

941


12. Types of polymorphisem[Run and Design Exp.]

2059


Explain the race around condition? How can it be overcome? : Dot net architecture

951


Explain about metadata?

920


What is the purpose of cache? How is it used? : Dot net architecture

875


Explain difference between machine config vs. Web config : Dot net architecture

883


State the different levels of exceptional safety?

983


What is the use of web.config?

1116


What is gui programming? : .NET Architecture

914


What is the mesi? : Dot net architecture

1019


Can I create my own context attributes?

947


.Net Frame work arch?

2037


How do we do authentications using atlas?

969


What are public and private assemblies ?

942


Difference between type constructor and instance constructor?

1117