Object-oriented programming takes the view that what we really care about are the objects than the logic. Examples of objects range from human beings (described by name, address, and so forth) to buildings and floors (whose properties can be described and managed) down to the little items in your life (such as pencil and eye-glass).
The first step in Object Oriented Programming is to identify all the objects you want to manipulate and how they relate to each other, an exercise often known as data modeling. Once you've identified an object, you generalize it as a class of objects and define the kind of data it contains and any logic sequences that can manipulate it. Each distinct logic sequence is known as a method. A real instance of a class is called an "object" or, an "instance of a class".
Based on this situation you are required to design a class which represents an object in the real world. The class must fulfill all the criteria listed below:
1. At least two instance variables that specify the attributes of the object
2. Two constructors that initialize instance variables of class.
3. Provide list of set & get methods for all the attributes.
4. Provide at least three overloaded method
5. Provide at least two subclasses which represent sub categories of the object.
6. You need to override minimum one method in each subclass.
7. You should create at least 2 objects of each class and call all the methods available for that object.
8. There will be additional 2 marks for implementing interface by any of classes (interface should contains at least 3 methods)
9. Write your classes in separate files.
10. You should draw a class diagram for this assignment. (In a class diagram we can show the member variables, and methods of a class. We can also show whether one class inherits from another). Figure 1 shows an example of class diagram.
11. Don’t forget to include screenshot to your report
12. Any project which is found to be the same as another will be penalized. If someone cheats by using your work, you will be penalized.
• The objective of this Individual Assignment is for students to showcase their skill in Object Oriented Programming features.
• Before the end of Week 7
• Submit during the Lab OR Lecture ONLY.
• Submit hardcopy personally to the unit controller of Java Programming II.
• Hardcopy must have the Limkokwing University of Creative Technology cover page with your names, ID, course name, semester, coursework title and lecturer name correctly printed, attached in front of the source codes and stapled together or bind together.
• Print out the source code by using COURIER NEW font style and size of 9 by using Microsoft Word. Include PAGE NUMBER on the bottom right.
• Student who submits this piece of Assignment 1 later than the deadline date stated above will have his/her marks deducted accordingly as stated in the course outline.
• This project should be carried out individually only.
• Backup copy: You are required to keep a backup copy of everything related to this coursework in case you need to refer to it in the future.
RULES AND REGULATIONS
• You are to complete this assignment individually.
• You are NOT allowed to work with any other students, individual or do your work based on another program that is available from the Internet, or any other source.
• If there is too much collaboration from your common discussion by looking at the solutions, in such instances of academic dishonesty may result in you getting zero marks for this piece of assignment.
• If someone cheats by using your work, you will be penalized.