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...

Is class an Object? Is object a class?

Answer Posted / julian c

Stop thinking like programmers saying "Object is a class in Java, c# etc".

I have in front of me a number of Whiffleplops of different colours; black, blue and red.

The black, blue and red Whiffleplops are three different objects. They are also of different sizes and I can play with them.

Do you have a Whiffleplop with you? No? (Why not).

Do you see that Whiffleplop is a CLASS of object that I can define as having two attributes (colour and size) and behaviour (you can play with it)? When you do get a Whiffleplop of any size or colour then you'll have an object, or an instance of the Whiffleplop class. You don;t have to have one for me to define the class though!

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sealed modifiers?

962


What interface must an object implement before it can be written to a stream as an object?

1015


Can you instantiate an abstract class and what is an inner class?

901


What is the syntax of object oriented method call?

943


What are the properties that are defined in an object model?

925


Can you define OOP and principles of OOP?

926


What is operator overloading?

1283


What is the order of call of constructors in inheritiance?

951


Explain about overriding polymorphism?

1012


What is data encapsulation and what's its significance?

999


Explain method overriding.

996


Are constructors inherited? Can a subclass call the parent's class constructor? When?

948


Why is message passing between the objects important?

937


What is difference between polymorphism and normalization?

1990


What is the use of ‘finalize’?

975