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 the super keyword?

993


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

1131


What are virtual functions, base class pointer, derived class pointer, biding references?

948


What are the Differentiate between abstraction and encapsulation.

861


Can we override static methods of a class?

984


Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?

1111


What is operator overloading and polymorphism?

985


Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?

963


Explain what you understand by function overloading.

921


If a class inherits an interface, what are the 2 options available for that class?

893


Explain about the design phase?

960


Can you use virtual, override or abstract keywords on an accessor of a static property?

948


Write a note about inheritance?

893


Explain the implementation phase with respect to oop?

913


Explain what an object is.

1005