BIT701 Assignment No.2 Solution and Discussion


  • | 0 PKR

    BIT-701
    ASSIGNMENT DUE DATE: 5th August, 2019 MARKS: 10
    Topic: Constructors and Destruction
    Q1. Write a C++ program to show the order of constructor call in single inheritance and also show
    the output?
    Q2. Complete the code C++ program to show the order of constructor calls in Multiple Inheritance
    along with output?

    #include <iostream>
    using namespace std;
    
    // first base class
    class Parent1
    {
    
     public:
    
     // first base class's Constructor
     Parent1()
     {
     cout << "Inside first base class" << endl;
     }
    };
    
    // second base class
    class Parent2
    {
     public:
    
     // second base class's Constructor
     Parent2()
     {
     cout << "Inside second base class" << endl;
     }
    };
    

    SEMESTER SPRING 2019
    Important:
    24 hours extra / grace period after the due date is usually available to overcome uploading
    difficulties. This extra time should only be used to meet the emergencies and above mentioned due
    date should always be treated as final to avoid any inconvenience.
    Other Important Instructions:
    Deadline:
    • Make sure to upload the solution file before the due date on VULMS.
    • Any submission made via email after the due date will not be accepted.
    Formatting guidelines:
    • Use the font style “Times New Roman” or “Arial” and font size “12”.
    • It is advised to compose your document in MS-Word format.
    • You may also compose your assignment in Open Office format.
    • Use black and blue font colors only.
    Referencing Guidelines:
    • Use APA style for referencing and citation. For guidance search “APA reference style” in
    Google and read various websites containing information for better understanding or visit
    http://linguistics.byu.edu/faculty/henrichsenl/apa/APA01.html.
    Rules for Marking
    Please note that your assignment will not be graded or graded as Zero (0), if:
    • It is submitted after the due date.
    • The file you uploaded does not open or is corrupt.
    • It is in any format other than MS-Word or Open Office; e.g. Excel, PowerPoint, PDF etc.
    • It is cheated or copied from other students, internet, books, journals etc.
    Note related to load shedding: Please be proactive
    Dear students
    As you know that Post Mid-Term semester activities have started and load shedding problem is
    also prevailing in our country. Keeping in view the fact, you all are advised to post your activities
    as early as possible without waiting for the due date. For your convenience; activity schedule has
    already been uploaded on VULMS for the current semester, therefore no excuse will be entertained
    after due date.



Join Us Get Reward Earning!

Cyberian is not a free learning community! We provide to Members earning way with learning. How lets me explain check HERE. if you have any question please post in reply. Thanks!

Online Users

| |