IGNOU - Indira Gandhi National Open University, IGNOU Papers, IGNOU Assignments, IGNOU Results, University, Books, MBA, MCA, Exams, Delhi, India, Course, BCA, Bsc, Msc
 
Google
 
Home IGNOU Papers IGNOU Assignments IGNOU Students Forum IGNOU Articles Indian Education     Registration Login
Indira Gandhi National Open University IGNOU Indira Gandhi National Open University
IGNOU Latest Assignments
IGNOU BCA Assignments BCA 2009
IGNOU BCA Assignments BCA 2008
IGNOU BCA Assignments BCA 2007
IGNOU BCA Assignments BCA 2006
IGNOU Latest Assignments
IGNOU BCA Assignments IGNOU BCA Assignments
IGNOU BCA Assignments IGNOU MCA Assignments
IGNOU MBA Assignmants IGNOU MBA Assignments

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.

PREVIOUSINDEXNEXT

Indira Gandhi National Open University   Indira Gandhi National Open University

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.