Random generic class

Report a typo

Write a generic class named RandomClass which has three parameters: value1 of type T, value2 of type S, and value3 of type U. This class has three methods: getFirstValue(), which has T as a return type and value1 as a return value, getSecondValue(), which has S as a return type and value2 as a return value, and getThirdValue(), which has U as a return type and value3 as a return value.

Write a program in Kotlin





___

Create a free account to access the full topic