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

difference between class and object

Answer Posted / maheshbirajdar

Class -
Class is collection of data member and member function .....
Class is logical entity...
Class is blueprint of object.....

class is collection of objects which holds properties of class...occupy
Object -

object that holds state , behaviour and identity properties

object is nothing but the having same memory space in ram.(minimum 1 byte compiler dependent).....

object is instance of class...............

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 a superclass in oop?

1217


What is static in oop?

1118


What is oops concept with example?

1080


What is encapsulation in oop?

1100


What is advantage of inheritance?

1223


What is constructor in oop?

1170


What is the difference between inheritance and polymorphism?

1161


What is encapsulation with real life example?

1088


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1245


What is solid in oops?

1200


i got a backdoor offer in process global,Bangalore..Can i work with it?

2892


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2335


Can an interface inherit a class?

1106


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

5043


What is inheritance in oop?

1089