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!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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