Java Basic

BY IN Java Comments Off on Java Basic

Please study the following: (this is IMPORTANT as it’s preparation for Paper 2 Exam)(We will discuss it on the next meeting) * Explain the role of the constructor and destructor in Object Oriented Programming (Give examples of it)! // Create a MyClass classpublic class MyClass {  int x;  // Create a class attribute   // Create a class constructor for the MyClass class  public MyClass() {    x = 5;  // Set the initial