| December 12, 2008 13:02:41 |
#10 |
| Bhoomika sharma |
Member Since: December 2008 Total Comments: 39 |
RE: difference between class and structure |
We can list as:
1. In classes the default scope is private whereas in structures u have public.equir
2.Also, u can define the scope according to is requiremeuctunts in claasses.
3. In classes u can create fn nd methods which is not so in d case of structures.
4.You cn also do operator overloading in case of classes which is not so in d case of structures.
5.Various other object - oriented features are found in classes and not in structures wherin u can create objects which is not possible in structures. |
| |