![]() |
| Home | IGNOU Papers | IGNOU Assignments | IGNOU Students Forum | IGNOU Articles | Indian Education | Registration | Login |
|
IGNOU > IGNOU Assignments > BCA > BCA 2007 Assignments > C++ and Object Oriented Programming IGNOU BCA Assignments Question 1: (a) Explain why we use the concept of classes in C++, when already the concept of structures prevail in both C and C++? Ans: There is a concept of Object and Class in C++, because it is an Object Oriented Programming Language. Each object can be related to a type, which is its class. An important consideration of a class is that it specifies the message interface that is the messages that can be sent to that type/class of the objects. All object of a particular can receive the same messages, but may behave differently. This leads to an important conclusion. Where as structures can not be used for message interface. It is only used for same memory allocation for different types of data. The class acts as a guard and thus provides information hiding and an encapsulations.
|
|||||||||||||||||||
HOME | ABOUT US | GUEST BOOK | TERMS OF SERVICE | PRIVACY POLICY | CONTACT US © 2003-2012, IGNOUGuess.com Website Designing, Website Development, Search Engine Promotion, Web Hosting By: DreamzSop Advertising Private Limited. |
||