单项选择题

下列Component类的方法中,用于组件可见性的是( )。 A.
updata( ) B.
paint(Graphics g) C.
setVisible(Boolean b) D.
repaint( )