Question: By using netbeans Due Date: 7h November, 2018 Create a Java project that demonstrates various object oriented concepts you have learned so far in this

 By using netbeans Due Date: 7h November, 2018 Create a Java
By using netbeans

Due Date: 7h November, 2018 Create a Java project that demonstrates various object oriented concepts you have learned so far in this course (encapsulation, inheritance and polymorphism). To do this, create a super class and at least 2 subclasses. You can either do multilevel inheritance or hierarchical inheritance in this assignment The super class will have following properties/functionalities: a) Create a total of 3 member variables for the class, selecting the appropriate data types for b) c) each field. Include an argument-constructor in this Class to initialize all data fields. Encapsulate this Class. The two sub-classes will have below properties/functionalities: a) b) c) One of the subclasses will have at least one member variable and other subclass with at least two member variables. Have two constructors in each subclass: one constructor for initializing only super class data while other constructor will initialize both super and subclass data. Encapsulate the subclasses. You should include overloaded methods in any of the classes you have created (superclass or subclass) Override the toString() method in each of your Classes. Override the equals() method in each of your Classes. d) e) f) The test class [with the main ( method] will perform below tasks: 1) Create objects of superclass and each subclass types invoking all constructors. Draw the object diagram for each of the object created 2) Use setter methods to fill missing data in all objects. Draw updated object diagrams. 3) Generate outputs demonstrating overloading and overriding outputs. 4) Create object of subclass [actual typel and store it in superclass object [declared typel 5) After creating Sub and Super objects check the contents of objects and Generate output for instanceof operator 6) Do object casting (show both implicit and explicit castings) 7) Generate output for constructor chaining lusing both this and super keywords] 8) Add all the Objects (Super class and Sub Class) in to an ArrayList. 9) Display the contents of all Objects from ArrayList using toString0 method. 10) Check the Contents of the Objects in ArrayList using equals 0 method and display the output. Submit a report including: 1. The UML diagram of all Classes. 2. Screenshots of all output generated from the application. 3. Super class, Subclass and Test class codes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!