A
Q. Choose the correct way of creating an object of the below class.
Code:
class Table
{
Table(){System.out.println("Table Created");}
}
{
Table(){System.out.println("Table Created");}
}
- Correct Answer - Option(B)
- Views: 13
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.