rendered paste bodypackage test;public class Attribute { private String name; private String property; private String value; private String openTag; private String closeTag; public Attribute() { this.name = "html"; this.openTag = "<" +mName+">"; this.closeTag = "<\\" +mName+">"; /*To escape the first /*/ } public Attribute(String name){ this.name = name; this.openTag = "<" +name+"\\>"; this.closeTag = ""; } public Attribute(String name, String property, String value) { this.name = name; this.property = property; this.value = value; this.openTag = "<" + name+" "+ property+"="+ value+">"; this.closeTag = "<\\" + name+">"; /*To escape the first /*/ } public String printTags(){ String pTags; pTags = mOpenTag+mCloseTag; return pTags; } public String printTags(Attrib pNestedAttrib){ // for Polymorphism - this allows the print tags to print tags inside tags - Yo Dawg!... String pTags; pTags = mOpenTag+pNestedAttrib.printTags()+mCloseTag; return pTags; }}