GP
Size: a a a
GP
AO
AO
GP
Y
Y
Implement a Container class parametrized with type A. Class constructor should accept a single private value of the given type. The class should implement the following methods:
a. getContent returning the stored value
b. applyFunction accepting function A=>R and returning the result of application of this function to stored value
Y
sealed abstract class Cont[+A](value: A) {
def getContent: A = value
def applyFunction[R](a: A => R): R
}AZ
AZ
Oℕ
AZ
s
Oℕ
AS
AZ
AZ
NV
Oℕ
NV
Oℕ