Java

contactwahyu on April 24th, 2019

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 […]

Continue reading about Java Basic