public class CableModem extends Modem { String method = "cable connection"; public void connect() { System.out.println("Connecting to the Internet ..."); System.out.println("Using a " + method); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)