CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.

Sponsored Links

Interview Questions
Our Services

INTERVIEW QUESTIONS PROGRAMMING LANGUAGES C++ DETAILS
Question :
You?re given a simple code for the class BankCustomer. Write the following functions ...

You?re given a simple code for the class BankCustomer. Write the following functions:
* Copy constructor
* = operator overload
* == operator overload
* + operator overload (customers? balances should be added up, as an example of joint account between husband and wife)


Category C++ Interview Questions
Rating (4.9) By 22 users
Added on 7/16/2015
Views 47
Rate it!


Answers:

Source: CoolInterview.com


Note:Anyone confusing assignment and equality operators should be dismissed from the interview. The applicant might make a mistake of passing by value, not by reference. The candidate might also want to return a pointer, not a new object, from the addition operator. Slightly hint that you?d like the value to be changed outside the function, too, in the first case. Ask him whether the statement customer3 = customer1 + customer2 would work in the second case.
Source: CoolInterview.com



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What are the defining traits of an object-oriented language?
    View Answer
    Why are arrays usually processed with for loop?

    View Answer
    Assignment Operator - What is the diffrence between a "assignment operator" and a "copy constructor"?


    View Answer
    mutable" Keyword - What is "mutable"?

    View Answer
    Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

    View Answer
    Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

    View Answer
    What are 2 ways of exporting a function from a DLL?
    View Answer
    What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

    View Answer
    Explain term POLIMORPHISM and give an example using eg. SHAPE object: If I have a base class SHAPE, how would I define DRAW methods for two objects CIRCLE and SQUARE

    .
    View Answer
    ell how to check whether a linked list is circular.
    View Answer
    Write a function that swaps the values of two integers, using int* as the argument type.

    View Answer
    Write a short code using C++ to print out all odd number from 1 to 100 using a for loop


    View Answer
    Write a program that ask for user input from 5 to 9 then calculate the average
    View Answer
    In the derived class, which data member of the base class are visible?

    View Answer
    STL Containers - What are the types of STL containers?
    View Answer
    How do you traverse a Btree in Backward in-order?
    View Answer
    What is pure virtual function?

    View Answer
    How can you tell what shell you are running on UNIX system?
    View Answer
    How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
    View Answer
    What is polymorphism?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL C++ Interview Questions & Answers

    User Options
    India News Network

    Latest 20 Questions
    A note sent by buyer on return of goods is: a) Debit Note b) Credit Note c) Return Note d) None
    Total of Sales Book will be posted: a) In Debit side of Sales Account b) In Credit side of Purchases Account c) In Credit side of Sales Account d) In Debit side of Sales return account
    Trade discounts are: a) Recorded in the books b) Not recorded in the books c) Not used for determining the net price d) Used for specific purposes in accounting
    The source document or voucher used for recording entries in sales book is: a) Invoice received b) Invoice sent out c) Credit notes sent out d) Debit notes received
    Purchase of fixed assets on credit basis is recorded in: a) Purchase Book b) Cash Book c) Journal Proper d) Journal
    A _______ is sent to a customer when he returns goods: a) Debit Note b) Credit Note c) Proforma Invoice d) None of the above
    PURCHASE BOOK is used to record: a) All purchases of goods b) All credit purchases c) All credit purchases of goods d) All credit purchases of assets
    Goods sold for cash Rs. 10,000 plus 10% sales tax.Sales A/c will be credited by: a) Rs. 11,000 b) Rs. 10,000 c) Rs. 9,000 d) None
    Total of the sales book for March indicates: a) Total sales for the month b) Total credit sales for the month c) Total cash sales for the month d) Total sales less sales return
    The total of the Purchase Day Book is posted periodically to the: a) Debit of purchases A/c b) Credit of purchases A/c c) Cash Book d) None of these
    Under inductive method , the logic proceeds from: a)General to particulars b)Particular to general c)Both (a) and (b) d)None
    Which of the following falls under micro economics? a)National income b)General price level c)Factor pricing d)National saving and investment
    Under a free economy ,prices are: a)Regulated b)Determined through free interplay of demand and supply c)Partly Regulated d)None of these
    In which type of economy do consumers and producers make their choices based on the market forces of demand and supply? a)Open Economy b)Controlled Economy c)Command Economy d)Market Economy
    The branch of economic theory that deals with the problem of allocation of resources is: a)Micro Economics b)Macro Economics c)Econometrics d)None of these
    Economics is the study of mankind in the ordinary business of life was given by: a)Adam Smith b)Lord Robbins c)Alfred Marshall d)Samuelson
    Agreement of Trial Balance is not a ________ proof of accuracy. a) Submissive b) Inclusive c) Exhaustive d) Conclusive
    _________ is prepared to ascertain the arithmetical accuracy of posting and balancing a) Cash Book b) Journal c) Trial Balance d) Bank Reconciliation Statement
    Closing stock in the trial balance implies that. a) It is already adjusted in the opening stock b) It is adjusted in Sales A/c. c) It is adjusted in the Purchase A/c. d) None of these
    Trial Balance creates ________ accuracy. a) Principle b) Arithmetical c) Clerical d) None



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions



    Cache = 0.013672 Seconds