Question: A parent - class called Mammal having the following attributes: name as private, type as protected, and owner as public. A child - class called
A parentclass called Mammal having the following attributes: name as private, type as protected, and owner as public.
A childclass called Cat having the following attributes: weight as public.
Because of the inheritance relationship between Cat and Mammal, the class Cat will have access to the following additional attributes:
name and owner.
name, type, and owner.
type, only
type and owner.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
