// written by Sunita Kanchinadam. // This class is derived from Link class. // It implements the GetLinkSize() and GetTotalSize() abstract // methods from the Node class. import DuVisitor; import Node; import Link; import java.util.*; public class HardLink extends Link { // constructor HardLink (String name) { setName(name); setSize(8); } int GetTotalSize(String option) { return (getSize()); } int GetLinkSize() { return (getSize()); // return (0); } }