Can you explain what inheritance is and an example of when you might use it?
When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.
When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.
Posted by S3 Technology Softwares at 5:17 PM
Labels: Interview Questions
Subscribe : Subscribe By Email
No comments:
Post a Comment