class Motherboard { { / / / / some methods } } class Processor { { /
Fantastic news! We've Found the answer you've been seeking!
Question:
class Motherboard {
// some methods
}
class Processor{
//some methods
}
class Mouse{
//some methods
}
class Mousepad{
//some methods
}
class Keyboard{
//some methods
}
class Keypad {
//some methods
}
class Computer {
private Motherboard m;
private Processor p;
private Mouse mo;
private Keyboard k;
}
class Laptop extends Computer {
}
In the code shown above, how would you overcome the limitation of inheritance?
Related Book For
Computer organization and architecture designing for performance
ISBN: 978-0136073734
8th edition
Authors: william stallings
Posted Date: