This blog defines the difference between Class and Structure.
Class
- Class is a reference type and its object is created on the heap memory.
- Class can inherit the another class.
- Class can have the all types of constructor and destructor.
- The member variable of class can be initialized directly.
- class object can not be created without using the new keyword, it means we have to use it.
Demo obj=new Demo();
Structure
- Structure is a value type that is why its object is created on the stack memory.
- Structure does not support the inheritance.
- Structure can only have the parametrized constructor. it means a structure can not have the non-parametrized constructor,default constructor and destructor also.
- The member variable of structure can not be initialized directly.
- Structure object can be created without using the new keyword.(optional)
Demo obj;

Prasanna MiskinPosted Jul 7, 2017, 5:45 AM
I have a doubt here, int x = new int(); is possible that means since int is struct therefore 3rd point for structures is not completely correct.
ashok rathodPosted Apr 26, 2016, 11:13 PM
this is really good
Raman JoshiPosted Aug 2, 2015, 10:09 PM
why don't u ll read books.
Nidhin T BPosted May 27, 2015, 3:03 AM
class object can not be created without using the new keyword???? then how about : Class obj = null; or assigning another obj to this.
prashant manePosted Jan 22, 2015, 10:27 PM
it is not brief but very good
dell mercaPosted Jan 19, 2015, 1:18 AM
More about difference between class and structure http://net-informations.com/faq/oops/struct.htm
Chandan pathakPosted Dec 27, 2014, 11:46 AM
Not bad Really Good !!
Mohammad NadeemPosted Sep 15, 2014, 5:50 AM
Please Explain With a suitable example
Co. AdenPosted Jul 24, 2014, 9:15 PM
Sorry but i found some mistakes in ur post:
Balaji SelvarajanPosted Apr 7, 2014, 1:35 AM
Valuable
Dhanik SahniPosted Jul 29, 2013, 9:24 AM
Good one