Q1. A. What is unary operator? List out the different
operators involved in the unary operator.
B. What is an adjust field format flag?

Q2. A. Distinguish between a # include and #define.
B. Can a list of string be stored within a two dimensional
array?

Q3. A. Explain how a pointer to function can be declared in
C++?
B. List the merits and demerits of declaring a nested class
in
C++?

Q4. A. What are the syntactic rules to be avoid ambiguity
in multiple
inheritence?
B. Explain the operation of overloading of an assignment
operator.

Q5. A. Explain how the virtual base class is different from
the
conventional base classes of the opps.
B. Explain how an exception handler is defined and invoked
in a
Program.
Q6. A. What is a binary file? List the merits and demerits
of the binary
file usagein C++.
B. Write short notes on Text Manipulation Routines.
C. Write bites in Turbo c++ Header ("Include") Files.




Answer Posted / arun prasad v.s

Nested Classes:
Merits:

Solves one of the problems in Multiple inheritance.

Lets say, Class MyDerived has to implement 2 interfaces IA &
IB, both interfaces having a method Init() with same
signature. If MyDerived implements both, it cannot specify 2
Init() methods with with same signature.

This limitation forces us to use nested classes, where
MyDerived shall have 2 nested classes MyA:public IA &
MyB:public IB and they each have their own implementation of
Init() method.


Demerits:
Still thinking ...:) May be code complexity ?

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mfc class hierarchy?

627


What is the difference between Struts and JSF? Pls list some most suitable differences.

2851


plzz tell me what we can do and dont in tally ERP & sap business one?

1884


List out the basic features of MFC.

13723


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

3350






what message is sent to an application when the user presses the primary button?

1388


how to repaint when working with horizontal scroll bar

1553


I want recent paper pattern for HP company?

1793


Do you have an idea about MFC?

925


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

1813


What does mfc stand for?

971


what is functioning of DIalodDataXchange ..?

1200


How do I create a dialog box in mfc?

615


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

700