Because derived inherits functions and variables from base.
Your email address will not be published. Required fields are marked *
Submit Your Solution hear: