Use the Class node from the UML palette. Select the node, enter properties in field "Attributes" and methods in field "Methods" in section "UML" of the property grid in yEd lower right corner or press F6 after selecting the node and do the same in tab "UML".