Lunarpages Web Hosting Forum

Scripting Languages Hosting Help => C++ / PERL / CGI Support => Topic started by: android45 on October 30, 2012, 12:46:14 AM

Title: Object and a class
Post by: android45 on October 30, 2012, 12:46:14 AM
I would like to know what is the difference between an object and a class? Please explain in detail.
Title: Re: Object and a class
Post by: MrPhil on October 30, 2012, 05:45:49 AM
A class is more or less a template describing data and methods to apply to it. An object is an instantiation of a class, creating an actual instance of data to work with (call its methods).
Title: Re: Object and a class
Post by: annaharris on April 23, 2013, 04:12:40 AM
Every instance of a class is an object.
Classes are not objects. They are types. For getting more ideas about this, you can refer below link, http://www.felgall.com/obj1.htm
Title: Re: Object and a class
Post by: ivvyevents on July 02, 2013, 10:58:48 AM
Object is an instance of class where class is simply template for objects. And class is consists of attributes and it doesn't change during the execution.