Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Answer the following questions

1. Define Arrays?
Collection of data with same type referenced under one name.

2. What are the advantages of using arrays?

It is used to organize data large amount of data in one variable. It groups


similar data together. It uses index number to access random elements.
It avoids shortage of memory because its elements are stored in
consecutive memory locations.

3. What is difference between overloaded methods and overriding methods?

Overloaded Method has multiple methods with the same name but has
different arguments or parameters while Overriding Method is the
changing of inherited methods within a subclass

4. What is the difference between superclass and subclass?

Superclass is the parent class of the subclass and is the one being
inherited by another class.
Subclass inherits the the attributes and methods of the parent class.

*Paste your localhost/phpmyadmin here!

You might also like