subclass - What is the difference between Super thing = new Sub() and Sub thing = new Sub()? -
super comma = new sub (); Subject = new sub ();
What is the difference between talking and what can I do with it?
The difference is that variabele super chess
is assigned to any other subclass Can be done which implements super
while sub-item
can be assigned only to any other sub
class.
He said, new sub ()
to super thing
polynomiality and overriding Uses, from which you can find a good tutorial. You can call only the methods defined in the class super
if one of the subtracted (read: redefined) subpages on these methods, polymorphism ensures that the class super
In the method instead of the override method is called.
Comments
Post a Comment