Software Engineering Interview Questions: C++ – constructor, copy constructor and assignment – 1

The following two posts cover the topic of constructors, copy constructors and copy assignment operators in C++. At the end of reading these posts, you should be able to answer the following questions:

1. What is the difference between shallow copy and deep copy?

2. What are the functions C++ provides to our classes by default?

3. When should we provide our own copy constructor and copy assignment operator?

The posts have been taken from a file I had written for aiding in preparation for software engineering interviews. The style of exposition in the posts would hence exhibit a marked difference from that of a textbook, and orient itself more towards an informal synopsis written with the express purpose of aiding the understanding of the reader, who is assumed to be familiar with certain C++ concepts.

The pdf file which forms the basis for these two posts is attached here –  C-tutorials

2 Responses to Software Engineering Interview Questions: C++ – constructor, copy constructor and assignment – 1

  1. Joya says:

    Thanks for the post and continue posting.

    You can find some Chemical Engineering Interview Question Answers in the below link

    http://www.aired.in/2011/06/chemical-engineering-collection-of.html

    Thanks
    Joya

    • tkramesh says:

      Dear Joya,

      Thanks for the kind words. I would, hopefully, post other software engineering interview-related material over the coming days. Thanks also for sharing the link on chemical engineering interview material. Have a nice day.

      Yours sincerely,
      Ramesh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: