Class instances | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Class instances

Is it possible to add instances of classes?

5th Mar 2021, 5:53 PM
Maksimus
1 Answer
0
I think you need to be more descriptive with that questiin. What is it exactly are you asking for? I see two possibilities about your question here, and yet I'm not sure whether my assumption was correct: 1. You want to create a new instance. 2. You have a class that represents a numeric value, and you want the class to be able to use + operator. If you want good answer, then I suggest you to edit the thread and add some details. * I'll remove this note as you updated your Description.
5th Mar 2021, 8:24 PM
Ipang