class academic
{
int x,y;
void access()
{
int a,b;
academic student=new academic(); System.out.println(“Object Created”);
}
}
a. What is the object name of the class?
b. Name the instance variables used in the class.
c. Write the name of local variables used in the program.
Answers
Answered by
1
Explanation:
a) academic is the object name of class
b) x,y are instance variable (An instance variable is a variable which is declared in a class but outside of constructors, methods, or blocks.)
c) a,b are local variable used in program
Similar questions