Files
G4G0-2/Data Structures/AI Notes/Questions & Definitions.md
2025-03-16 18:59:42 +00:00

21 lines
757 B
Markdown
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## What is an Interface?
- An interface is a device or a system that unrelated entities use to interact.
- A remote control is an interface between you and a television set.
basically the interface has and abstract method which classes have to implement the method to make it 'real'.
Concert realisation of the otherwise abstract method.
## What is a Linked List?
- On the linked list every node is an object.
- Has more memory overhead than an ArrayList.
- Each node holds both data and the address of next and previous node.
- It mainly allows efficient *insertion* and *deletion* operations compared to arrays
- Its dynamic, the size of it changes with every change.
# Protected
prevents the method to be used by anyone but its sub classes.