TicTacToe game related question

  1. why our TicTacToe class extends swing JFrame class . i mean we can use all the functions of that class by making a object of its as we did for JButtons .So whats the need of extending it?
  2. what is enum . Also the purpose served by enum could have been served by a private class there then why we used enum over that ?
  3. also if i setVisible true for frame before adding buttons then the buttons added are not visible but if i setVisible true after adding buttons to frame then they are visible.why is this so .i mean i shoud set visibe true why does setting before or after matters?

it would be nice if someone can tell anything about above problems

Hi Kirti
Please post your doubt using “Ask Doubt” section of your online course and follow cb.lk/askdoubt guidelines to ask doubts.

it is showing that my doubt support period has ended