Question: Offer two dependent (parent-child) classes from real world. Write Java code to implement all of following components of the Object-Oriented Concept using offered classes: Abstraction

Offer two dependent (parent-child) classes from real world. Write Java code to implement all of following components of the Object-Oriented Concept using offered classes:

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism (method overloading and overriding)
  • Define Static attribute
  • Define Final attribute
  • Using additional non-related class Implement one of the following three Object Collaboration types:
    • Association
    • Aggregation
    • Composition
  • Explain High Cohesion and Low Coupling concept referring to your example/code;
  • Implement Abstract/Final Classes with appropriate methods (will be evaluated as Bonus up to 10%)

DELIVERABLES:

Java source-code (single .java file), with all classes and additional test class that refers to all classes and methods, specifies attributes and gives output of runs. In total, you are expected to have 4 classes (at least) in your java-file. Use Comments in code intensively to explain in which piece of code a certain concept is implemented (be descriptive).

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!