advertisement
this and super keyword in Dart Programming
this Keyword
this keyword is included when parameters and attributes of the same name as class attributes are used. It refers to the current class object and this keyword removes ambiguity which is generated while declaring the same name of parameters and attributes.
super Keyword
super keyword is used to refer to the parent class object. Methods and properties of the parent class can be called with the help of a super keyword. It also removes ambiguity between parent class methods and child classes that have the same method name and are called through objects.
advertisement
Conversation
Your input fuels progress! Share your tips or experiences on prioritizing mental wellness at work. Let's inspire change together!
Join the discussion and share your insights now!
Comments 0