Sponsored Links


Results 1 to 7 of 7

Thread: CS201 GDB Fall 2011

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    17

    CS201 GDB Fall 2011

    Sponsored Links1


    GDB Dated: Jan 18, 12
    Dear Students,
    Below is a topic for GDB. Please make sure that your reply should be precise and to the point.
    GDB will remain open for two consecutive working days from 23rd January to 24th January. Also make sure you post your GDB on time as No GDB will be accepted via email in any case.
    Topic is as follows:

    You have two classes, Class A and Class B. Being a programmer either you can implement Class B as nested class of Class A or you can inherit Class B from Class A.

    These are two ways to describe the relationship between classes. Discuses the situations in which, concept of public inheritance and nested class is more appropriate to use. Justify with solid reasons.

    Sponsored Links

  2. #2
    sol bi upload kro yr

  3. #3
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    idea solution


    Any time you use public inheritance, you should make sure that any function
    or object that expects a base class object will also be satisfied by a
    derived class obejct as well, because the derived class object "is a" base
    class object. If you're creating a class that "is a" base class (such as a
    math student "is a" student), then inheritance is fine.
    If your new class needs to utilize the behavior of the base class, but can't
    actually be substituted for a base class object (even if just in one special
    case), then layering (using a nested class) is a better approach. That's
    referred to as the "is implemented in terms of" relationship.

  4. #4
    thanks for sharing

  5. #5
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    hmmmmmmmmmmmmmm

  6. #6
    Junior Member
    Join Date
    Jan 2012
    Posts
    1
    thank u so much

  7. #7
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    okay :::))))))))

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 02-03-2012, 06:16 PM
  2. Replies: 15
    Last Post: 01-11-2012, 04:19 PM
  3. Replies: 5
    Last Post: 12-29-2011, 03:58 PM
  4. cs201 current subjective paper fall 2010 on 18-02-2011
    By Xpert in forum Current Papers 2010
    Replies: 0
    Last Post: 02-17-2011, 10:45 PM
  5. Replies: 41
    Last Post: 02-02-2011, 01:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft