Aneswer the above Questions
- Which one of the following situations does NOT have a retain
cycle?
- Object 1 of class A is assigned to a member of Object 2 of
class B, while Object 2 of class B is assigned to a member of
Object 1 of class A.
- Which of the followings are the potential consequences of
memory leak? Select all that apply.
- The program keeps consuming memory.
- The program tries to read data from the memory space of another
program.
- The program tries to write data to the memory space of another
program
- Which of the followings does NOT resolve a retain
cycle?
- Use weak reference
- What can we do with function types? Select all that apply.
- Pass a parameter of a function type to a function.
- Return a data of a function type from a function