Question ) Implement an object oriented ’Character’ class to capture the common attributes and actions of all characters in your game.
Code) Read input from the keyboard to let the user provide values for your character’s attributes of a specific character object (not a superclass object) your code will create.
Code) Since the user could mistype or introduce problems with their typed input, handle all exceptions with exception handling as part of your character data gathering code.
Code) Create a superclass character object, and call its attack method to demonstrate its use
1) Implement an object oriented subclass of Character, to simulate a specific kind of character in your game. For example, a ’warrior’ class. A warrior is a character, but a character is not necessarily a warrior.
2) Include one unique data field for an attribute of the specific character that is not inherited or defined in Character class
3) Implement a method which overrides the Character attack method to make your subclass simulate a more specific kind of attack that relates to its type, with informative printouts
1) Implement an object oriented ’Character’ class to capture the common attributes and actions of all characters in your game. No need to make this class or the subclass public.
2) Declare two data fields for attributes of the character, one textual and one numeric.
3) Implement a constructor method to initialize data fields and set up the character object .
4) Since all characters can attack, implement a method to simulate the character object attacking in some generic way, including informative printouts
Create a Student class with instance variables name, roll, mark and instance methods setStudentDetails(), displayStudent(). One object of the Student class represents a specific student. Create a Singly Linked List in such a way that every node of the Linked List contains 2 parts: stud and link, where, stud stores the reference to a Student object and link stores the reference of the next node. Hence, the Node class (user defined type) has the following structure.
Briefly explain what an array is. As part of your answer make use of a labelled example to show the declaration and components of an array Note: You will receive 4 marks for your explanation and 6 marks for your labelled example.
dentify the purpose and the components of the method represented in the pseudocode below:
Consider the following pseudocode, then write the pseudocode for mainline logic that contains the elements required in Q.4.3.1 to Q.4.3.3.