python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to get the maximum value among the arguments of class objects in Python?
I have sample class and instances:
class A:
def __init__(self, num)
#instances
a = A(2)
b = A(4)
c = A(5)
d = A(7)
In another class (class B) within a method, I have to get the highest value amon...
chilliyayi
Votes: 0
Answers: 3
Can I use a class instance as an argument for a generic in java?
I am passing a class as a parameter to a method and I need to create an instance of that class, something like
public void setPiece(int i0, int j0, Class<Piece> pieceClass) {
Piece p = n...
Daniel Barac
Votes: 0
Answers: 1