for school this site and for everything else social midia
Answer:
Hello attached is the Java program written to solve the problem
The Pet.java and Dog.java files are unaltered
Explanation:
The input and output codes are attached as well i.e the second image is the input while the third image is the output code
The basic difference between RAM and ROM memory is RAM is read/write while ROM Is read-only.
Explanation:
- A ROM, non-volatile memory, does not use to store data, but RAM is volatile and requires power to store data.
- ROM is not given usually as a specification, but RAM is typically specified when buying a computer.
- We can write data only once in ROM. However, once it is written, we can read it any number of times. RAM is the main memory in a computer, and read from and write to it much faster than other storage types. RAM is used to store files in use on the computer.
Hence the basic difference between RAM and ROM memory is RAM is read/write while ROM Is read-only.