Question: In (JAVA) object oriented programming Question 1 (50pt]: Using object-oriented programming principles, create an abstract class called Water, which contains constructor, attributes (variable), behaviors (methods),

 In (JAVA) object oriented programming Question 1 (50pt]: Using object-oriented programming

In (JAVA) object oriented programming

Question 1 (50pt]: Using object-oriented programming principles, create an abstract class called "Water", which contains constructor, attributes (variable), behaviors (methods), and a constructor. The constructor must take some arguments as parameters (You decide them). Create two more concrete classes (you name them) inherited from "Water" class, which also contains constructor, attributes (variable), behaviors (methods) as well as overrides behaviors of Water class, and constructors. In your scenario, Draw a UML class diagram to show attributes and behaviors and parent-child (superclass-subclass) relationship, Create a class called Water Test.java that includes main method, in that method create two objects one from each and call methods (that you implemented in the classes) using the objects

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!