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 hybrid inheritance?

994


What is abstract method?

991


What are the limitations of inheritance?

985


What is the @functionalinterface annotation?

944


What is composition? Explain the purpose of composition.

967


Can you explain primordial class loader?

929


Explain the use of Vtable and what are the various problems to override the functions?

947


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

995


Why dynamic loading is used in object-oriented programming?

1001


Differences between functional programming and object-oriented programming?

1050


What is the difference between aggregation and composition?

947


What is a static method? Why do we need static methods in java 8 interfaces?

1199


Can we override a method by using same method name and arguments but different return types?

941


Is it possible to provide method implementations in java interfaces? If possible, how do we provide them?

947


How do we implement serialization actually?

932