I. IDENTIFICATION
1. A programming model where programs are organized around objects and data rather than action and logic.
2. A blueprint of an object that contains variables for storing data and functions to perform operations on the data.
3. The basic run-time entities of an object oriented system
4. An instance of a class
5. Provides you a generalized view of your classes or objects by providing relevant information
6. Wrapping up a data member and a method together into a single unit
7. When a class includes a property of another class
8. One function behaves in different forms.
II. Writing Code
Create a program that ask the details of a Character (NAME, AGE, GENDER,WEAPON,TRIBE)
AVAILABLE TRIBE NAMES:
LEVI
JUDAH
GAD
ASHER
IF THE TRIBE IS LEVI, ASK FOR THE NAME OF THEIR LEADER,NO OF SOLDIERS
IF THE TRIBE IS JUDAH, ASK FOR THE NAME OF THEIR PET,NAME OF THEIR KING.
IF THE TRIBE IS GAD, ASK FOR THE NAME OF THEIR STRONGEST WARRIOR, FAVORITE WEAPON
IF THE TRIBE IS ASHER, ASK FOR THE NAME OF THEIR QUEEN, AND THE NAME OF THEIR PRINCESS
NOTE: HANDLE ALL THE ERROR, FOR EXAMPLE, PROMPT THE USER IF THE ENTERED TRIBE IS NOT FOUND.
Design your own class diagram.
No comments :
Post a Comment