Program to release memory by using AutoreleasePool.
Program which retains count of object by initializing a object and increment it by using "retain" keyword.
Program showing, inaccessibility of private variable of class in the main method.Program shows error.