Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 GDB Fall 2011
#1
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.
Reply
#2
sol bi upload kro yr
Reply
#3
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.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#4
thanks for sharing
Reply
#5
hmmmmmmmmmmmmmm

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#6
thank u so much
Reply
#7
okay :::Smile))))))))

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS201 Assignment vo 3 Solution 20th January 2016 Vuhelper 2 2,598 01-20-2016, 03:28 PM
Last Post: Vuhelper
  Bus Ticket Reservation System SRS CS619 Final Software Project Semester Fall 2014 Vuhelper 6 5,124 01-13-2015, 04:46 AM
Last Post: Xpert
  CS710 Mobile and Pervasive Computing Assignment No. 2 Fall 2014 Vuhelper 0 2,608 12-23-2014, 02:41 PM
Last Post: Vuhelper
  MTH301 - Calculus II Assignment No. 02 Solution and Discussion Fall 2014 Vuhelper 0 2,782 12-17-2014, 09:34 PM
Last Post: Vuhelper
  STA406 Assignment Solution Fall 2014 (Total Marks15) 15th December 2014 Vuhelper 0 2,261 12-15-2014, 04:25 PM
Last Post: Vuhelper
  CS609 System Programming Assignments No. 02 Fall 2014 Due Date Dec 15, 2014 Vuhelper 1 2,234 12-13-2014, 04:25 PM
Last Post: Vuhelper
  CS605 Software Engineering II, Assignment No. 02 Fall 2014 Solution & Discussion Vuhelper 2 1,098 12-12-2014, 09:17 PM
Last Post: Vuhelper
  CS201 Mid term short notes Ideas For Examination 2015 Vuhelper 0 2,236 12-12-2014, 05:18 PM
Last Post: Vuhelper
  MTH501 Linear Algebra Assignments No. 1 Solutions Fall 2014 Vuhelper 1 2,395 12-12-2014, 04:32 PM
Last Post: Vuhelper
  CS201-Introduction to Programming Assignment No.2 Due Date 12 December 2014 Entboy 3 2,403 12-11-2014, 04:33 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)