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
Zia, founder and CEO of Texvn and Toolx, is a passionate entrepreneur and tech enthusiast. With a strong focus on empowering developers, he creates innovative tools and content, making coding and idea generation easier.
More From:
Zia
Container Widget in Flutter
A Container widget is one of the most popular widgets in Flutter. ...
Recomended
Remote Branches in Git -...
Here are a few common approaches As Git is a distributed version ...
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