![]()
In our previous Java tutoring sessions, we discussed the common programming structure of how separate classes can have the same attributes or methods. However, we had yet to find a way to ensure the common attributes and methods could be written in such a way that they could be reused for different instances of that same object. We introduced the object oriented concept of polymorphism in this session, and learned how it can be used to create objects that take many forms. We also learned how this useful concept can be used when two classes have a method with the same name but different functionalities.
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorArya Peruma is passionate about making STEM education more inclusive for the underrepresented. FOLLOW US
Archives
November 2021
Categories
All
|