[Solved] JAC444 Workshop 7-Functional Programming and Lambda Expressions in Java

$25

File Name: JAC444_Workshop_7-Functional_Programming_and_Lambda_Expressions_in_Java.zip
File Size: 668.82 KB

SKU: [Solved] JAC444 Workshop 7-Functional Programming and Lambda Expressions in Java Category: Tag:
5/5 - (1 vote)

This assignment lets you practice basic Functional Programming and Lambda Expressions in Java.

In this assignment, you will be adding some code to the workshop 3 (shapes) as follows:

Task 4: Define a functional interface to calculate the area of a shape. Create an object of that interface in each of the Circle, Square, Rectangle classes, using lambda expressions.

Print all the shapes and their perimeters polymorphically, as you did in task 1 (dont forget that you are using just one Shape array) but in cases that the shape being printed is an object of these classes (i.e. Circle, Square, Rectangle), print their areas (using the above mentioned objects you created) as well.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] JAC444 Workshop 7-Functional Programming and Lambda Expressions in Java
$25