OOP Concepts Flashcards
1
Q
The ability of an object to take on many forms, achieved through method overloading and overriding.
A
Polymorphism
2
Q
occurs within the same class with different signatures
A
Overloading
3
Q
subclasses with the same signature
A
Overriding
4
Q
cannot be instantiated and may contain abstract methods, while interfaces define contracts for classes to implement.
A
Abstract classes and Interfaces
5
Q
A mechanism where a class inherits properties and behaviors from another class.
A
Inheritance
6
Q
copies only the top-level object
A
Shallow copy
7
Q
copies all nested objects
A
deep copy
8
Q
Memory is managed in Jave via
A
Garbage collection
9
Q
A