title: How to use static objects in a class and how can we inherit the static object in other class
body: <p>I am working in a selenium webdriver project.Here is my Framework shown in screenshot given below:
  <img src="https://i.stack.imgur.com/1zKCb.png" alt="enter image description here"></p>
  
  <p>Here is the sample code , where I need to extend a static variable and a static object to another class.But when I try to extend the class , it shows some limitations in access modifiers.</p>
  
  <pre><code>package com.AFE_Framework;
  import java.util.List;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.By;
  public class A 
  {
     public static int dropdown_element_count;
  
     static WebElement afeTemplates;
  
     public static void Method_A (String A, String B)
     {
      WebElement createafeDiv = driver.findElement(By.xpath(xpathvalue1));
          List&lt;WebElement&gt; afeTemplates = createafeDiv.findElements(By
                  .xpath(xpathvalue2));
  
     }
  
  
  }
  ==========================================================================
  package com.AFE.TestCase
  
  import java.util.List;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.By;
  import com.AFE_Framework.*;
  
  
  public class B extends Class A 
  {
    public static void Manage()   
      {
      **dropdown_element_count = afeTemplates.size() &lt; --Here I am getting the error** 
      }
  
  }
  </code></pre>
  
  <p>So can any one please help me to sort out this issue ?*</p>