class Rectangle
{
 protected int  big_x,big_y;
 protected int small_x,small_y;

 private boolean test()
 {
  int a; int b; int c; int d;
  a = big_x; b=big_y; c=small_x; d=small_y;
  
  if(a<=c)
   return false;
  else if(b<=d)
   return false;
  else
   return true; 
 }

 

 public void ShowResult()
 {
  int xLen = big_x - small_x;
  int yLen = big_y - small_y;

  if(test = true)
   System.out.println("넓이는 : "+((xLen)*(yLen)));
  else
   System.out.println("big값이 더 커야합니다");
 }
}

class RectangleTest extends Rectangle
{
 public static void main(String[] args)
 {
  Rectangle rec = new Rectangle();
  rec.big_x = 2; rec.big_y = 4;
  rec.small_x = 4; rec.small_y = 6;
  rec.ShowResult();
 }
}


boolean도 선언으로 생각을하고 사용했는데 오류가 발생하네요 test라는 변수를 찾을수없다고..