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
What is mfc class hierarchy?
What is the difference between Struts and JSF? Pls list some most suitable differences.
plzz tell me what we can do and dont in tally ERP & sap business one?
List out the basic features of MFC.
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
what message is sent to an application when the user presses the primary button?
how to repaint when working with horizontal scroll bar
I want recent paper pattern for HP company?
Do you have an idea about MFC?
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
What does mfc stand for?
what is functioning of DIalodDataXchange ..?
How do I create a dialog box in mfc?
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?