Lab Inheritance Short
Lab Inheritance Short
Note:
Test the child class in runner and call the overridden method.
Write explicit call to parent class constructor in child class.
Derive a Laptop class that is a kind of computer but also specifies the
object’s length and width. Member functions for both classes should
include a default constructor, a constructor to initialize all components
and toString().
Note:Use overriding for defining toString()