Is it ok to use a super class as just a base class if it extends to sub classes? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 8

Is it ok to use a super class as just a base class if it extends to sub classes?

9th Feb 2018, 10:52 PM
D_Stark
D_Stark - avatar
4 Respostas
+ 10
Thanks noname, just checked if i needed to create a instance of superclass and i dont so thats good ā˜ŗ
9th Feb 2018, 11:02 PM
D_Stark
D_Stark - avatar
+ 7
nice 1 ā˜ŗ
9th Feb 2018, 11:07 PM
D_Stark
D_Stark - avatar
+ 3
That's exactly its purpose
9th Feb 2018, 10:54 PM
voidneo
+ 3
Nope. You just create the class and then extend, no need for declarations or instances
9th Feb 2018, 11:05 PM
voidneo