Object us instance | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

Object us instance

what is different between thems?

19th May 2018, 10:36 AM
Rahman Rezaie šŸ‡¦šŸ‡«
Rahman Rezaie šŸ‡¦šŸ‡« - avatar
5 Respostas
+ 7
when you use the "new" keyword you are creating an instance or an object of class they are the same thing
19th May 2018, 11:14 AM
D_Stark
D_Stark - avatar
+ 3
is any different thems or not?exectly
19th May 2018, 10:45 AM
Rahman Rezaie šŸ‡¦šŸ‡«
Rahman Rezaie šŸ‡¦šŸ‡« - avatar
+ 3
tanx
19th May 2018, 2:01 PM
Rahman Rezaie šŸ‡¦šŸ‡«
Rahman Rezaie šŸ‡¦šŸ‡« - avatar
+ 2
Acording to wikipedia: "AnĀ objectĀ is anĀ instanceĀ of a class, and may be called a classĀ instanceĀ or classĀ object; instantiation is then also known as construction. Not all classes can be instantiated ā€“ abstract classes cannot be instantiated, while classes that can be instantiated are called concrete classes."
19th May 2018, 10:40 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
No difference.
19th May 2018, 10:47 AM
Ulisses Cruz
Ulisses Cruz - avatar