Question: 1. A. The class Animal has a protected method called breathe and a private method called eat . If the class Mammal inherits from Animal,

1.

A. The class Animal has a protected method called breathe and a private method called eat. If the class Mammal inherits from Animal, which methods will it inherit?

Choices: eat, breathe, or eat and breathe

B. Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data ___________.

C. Common attributes and behaviors can be defined in a _______ class and inherited into a(n) ________ class a using the _________ keyword

.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!