Defining a Class
1)What are the data types of the 'x' and 'y' variables in the 'Point' class?
public class Point{
 private int x;
 private int y;
}
  

2)Can the 'x' variable be accessed from outside the 'Point' class?
public class Point{
 private int x;
 private int y;
}
  

3)Can the 'y' variable be accessed from outside the 'Point' class?
public class Point{
 private int x;
 private int y;
}
  

4)What is the purpose of declaring the 'x' and 'y' variables as private?
public class Point{
 private int x;
 private int y;
}
  

5)What is the default value of the 'x' and 'y' variables if not explicitly assigned?
public class Point{
 private int x;
 private int y;
}
  

6)What is the name of the class defined in the code?
public class Point{
 private int x;
 private int y;
}
  

7)Can you directly access the 'x' and 'y' variables from within the 'Point' class?
public class Point{
 private int x;
 private int y;
}
  

8)What is the purpose of the 'Point' class in this code snippet?
public class Point{
 private int x;
 private int y;
}
  

9)What additional methods can be added to the 'Point' class to manipulate the 'x' and 'y' coordinates?
public class Point{
 private int x;
 private int y;
}
  

10)Which of these are access modifiers?
public class Point{
 private int x;
 private int y;
}