Question: Write the class declarations for the following objects' descriptions. NO CODE. That means only properties and method declarations. Like... class Lamp { int mBulbs; void
Write the class declarations for the following objects' descriptions. NO CODE. That means only properties and method declarations. Like...
class Lamp {
int mBulbs; void Explode();
};
1) A Laptop has a color, brand, and processor speed. You can open, close, turn on, and turn off a laptop.
2) A monitor has a screen size and a brightness.
3) Oh wait, a laptop has a monitor itself. To do this, would you add a line to answer #1 or answer #2, and what line would you add?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
