Joshua Bloch说https://developers.google.com/recaptcha/docs/verify -
但它没有说明你可以用一个对象做什么 实现Cloneable接口,这意味着你无法做到 多态克隆操作。
此外, protected允许从子类和同一包中的其他类进行访问
假设 -
package com.bb;
import com.aa.AA;
public class BB extends AA {
protected void testProcBB(){
}
public void show() {
testProcBB(); // accessed through this
testProcAA(); // accessed through this
AA aa = new AA();
aa.testProcAA(); // compile error- testProcAA() from the type AA is not visible
AA aa1 = new BB();
aa1.testProcAA(); // compile error- testProcAA() from the type AA is not visible
}
}
和
testProcAA
通过多态克隆,他是否意味着这一点(将clone
替换为名称AA aa1 = new BB();
aa1.testProcAA();
) -
ChromeOptions option = new ChromeOptions();
option.AddArgument("--headless");
IWebElement myTable = driver.FindElement(By.XPath("//*[@id=\"trades-view active\"]/table/tbody/tr[1]/td[5]"));