Answers for "what is ?: in an interface"

1

interfaces are used as

It is used to achieve total abstraction.
 Since java does not support multiple inheritance in case of class, but by using interface it can achieve multiple inheritance .
 It is also used to achieve loose coupling.
Posted by: Guest on June-08-2021
0

interfaces

class Calculator(AdvancedArithmetic):
    def divisorSum(self, n):
        temp = []
        for i in range(1, n+1):
            if n%i == 0:
                temp.append(i)
        return sum(temp)
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language