The answer is D.
Inheritance means that a child class (subclass) can inherit functionality from a parent class (superclass). For example, a class called Person could have 2 subclasses called Student and Teacher. While Student and Teacher have attributes and methods that differ, they also have some that overlap. By passing these overlapping functionalities down from the Person class, we are making the code more reusable. This eliminates the need to write duplicate code and makes the code more readable.
Answer:
A computer is defined as an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.
Four features of a computer would be CPU, GPU, Memory, and Motherboard.
Answer:
The difference between While loop and Do - While loop are explained below.
Explanation:
- While loop : It is a looping procedure in which the statements inside the while loop are executed depending on the condition outside the while before starting the loop.
- If the condition is true then the code inside loop is executed otherwise not.
- Do - While loop: It is a looping procedure in which the statements inside the loop get executed and then the condition at the end of the loop is checked.
- This means even the condition is fails the statements inside the loop are executed once.
- Do while loop name itself suggests that "do the while and then check the condition".
8. according to Google, 1 byte = 8 bits