Dhanuja Ranawake

Moderators
  • Content Count

    13
  • Joined

  • Last visited

  • Days Won

    4

Dhanuja Ranawake last won the day on May 16

Dhanuja Ranawake had the most liked content!

Community Reputation

18 Good

2 Followers

About Dhanuja Ranawake

  • Birthday April 3

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dhanuja Ranawake

    🔴 OSSA Lab Test Q&A Part2

    Paper M Answer Paper F Answer ජය ශ්‍රී !!
  2. Dhanuja Ranawake

    🔴 OSSA Lab Test Q&A

    Paper 01 Answer Paper 2 Answer ජය ශ්‍රී !!
  3. Dhanuja Ranawake

    💻 OOP Online Test Q&A

    Elama keep it up
  4. Dhanuja Ranawake

    🔴 OOP Online Test Q&A Part2

    Answer Answer Answer Exam ගොඩ දාගන්න ජය ශ්‍රී !!
  5. Dhanuja Ranawake

    OOP Online Test5

    Version 1.0.0

    2 downloads

  6. Dhanuja Ranawake

    OOP Online Test4

    Version 1.0.0

    4 downloads

  7. Dhanuja Ranawake

    OOP Online Test3

    Version 1.0.0

    4 downloads

  8. Dhanuja Ranawake

    💻 OOP Online Test Q&A

    Online Test Q&A Paper 01 1. Create an abstract class called Clock a). The abstract class should have three properties. Hours, Mintues, Seconds b). The abstract class should have one abstract method void ShowTime(); 2. Create a class called NormalClock which extends the Clock class. a). Add the following properties. Day, Month b). Your class should have a constructor that initializes all the instance variables. c). Implement the ShowTime() method. d). Add methods DisplayDate(). Display the date when the method is called. 3. Create a class called SprotsWatch which extends the NormalClock class a). Your class should have a constructor that initializes all instance variables. b). Implement methods called StartStopWatch() and StopStopWatch(). Display an appropriate message for these methods. 4. Create ClockApp class which contains the main() method. Perform the following within the main() method. a). Create an instance of NormalClock class and initialize all the fields with appropriate values. b). Create an instance of the SportsWatch class and initialize all the fields with appropriate values. c). Display the time of both these watches making use of the ShowTime() method. d). Call the other methods that are defined. Answers Paper 02 1. Create a class called Student. The class should keep the following information in the fields: studentID, name a). Your class should have a constructor that initializes the two instance variables. Implement a method called Input() which will input values from the keyboard for the two parameters. Use a Try Catch statement to prevent non-numerical values from being entered to the integer parameter studentID. 2. Create a subclass of Student class and name it as MScStudent. The MScStudent class has the following field. specialization a). Your class should have a constructor that initializes all instance variables. 3. Create a class called Batch. It should contain the following fields name, mscstudents (should be an ArrayList of the type MScStudent) a). Your class should have a constructor that initializes all instance variables. b). Implement an Append() method which can be used to add an MScStudent Object to the Batch Class (store it under the ArrayList variable mscstudents). c). Implement a method called ListStudents() which will display all MSCStudents in the Batch 4. Create the University class which contains the main() method. Perform the following within the main() method. a). Create 3 instances of the MScStudents class and initialize all the fields with appropriate values. b). Create an instance of the Batch class and initialize all the fields with appropriate values. Use the Append() method to add the three MScStudents. c). Display all the MScStudets of the university using the ListStudents() method. Answers Exam ගොඩ දාගන්න ජය ශ්‍රී !!
  9. Dhanuja Ranawake

    OOP Online Test Q&A Paper02

    Version 1.0.0

    9 downloads

    1. Create a class called Student. The class should keep the following information in the fields: studentID, name a). Your class should have a constructor that initializes the two instance variables. Implement a method called Input() which will input values from the keyboard for the two parameters. Use a Try Catch statement to prevent non-numerical values from being entered to the integer parameter studentID. 2. Create a subclass of Student class and name it as MScStudent. The MScStudent class has the following field. specialization a).Your class should have a constructor that initializes all instance variables. 3. Create a class called Batch. It should contain the following fields name, mscstudents (should be an ArrayList of the type MScStudent) a). Your class should have a constructor that initializes all instance variables. b). Implement an Append() method which can be used to add an MScStudent Object to the Batch Class(store it under the ArrayList variable mscstudents). c). Implement a method called ListStudents() which will display all MSCStudents in the Batch 4. Create the University class which contains the main() method. Perform the following within the main() method. a). Create 3 instances of the MScStudents class and initialize all the fields with appropriate values. b). Create an instance of the Batch class and initialize all the fields with appropriate values. Use the Append() method to add the three MScStudents. c). Display all the MScStudets of the university using the ListStudents() method.
  10. Dhanuja Ranawake

    OOP Online Test Q&A Paper01

    Version 1.0.0

    14 downloads

    1. Create an abstract class called Clock a). The abstract class should have three properties. Hours, Mintues, Seconds b). The abstract class should have one abstract method void ShowTime(); 2. Create a class called NormalClock which extends the Clock class. a). Add the following properties. Day, Month b). Your class should have a constructor that initializes all the instance variables. c). Implement the ShowTime() method. d). Add methods DisplayDate(). Display the date when the method is called. 3. Create a class called SprotsWatch which extends the NormalClock class a). Your class should have a constructor that initializes all instance variables. b). Implement methods called StartStopWatch() and StopStopWatch(). Display an appropriate message for these methods. 4. Create ClockApp class which contains the main() method. Perform the following within the main() method. a). Create an instance of NormalClock class and initialize all the fields with appropriate values. b). Create an instance of the SportsWatch class and initialize all the fields with appropriate values. c). Display the time of both these watches making use of the ShowTime() method. d). Call the other methods that are defined.
  11. Seeking a fresh challenge