Skip to content
Minsing Log
Go back

English Edition

How to Redefine an Inherited Method for Each Dataset = Method Override

Programming & CS

Situation

In RAGchain, there are cases where the method created in the parent class to remove duplicate values needs to be implemented slightly differently for each dataset. How should this be solved?

Solution

Since the method created in the parent class is an instance method, perform method overriding (redefinition) in the child class.

Reference site 1

Follow the journey

Get new posts by email.

Short, honest notes on building, startups, learning, failures, and retrospectives, for readers who follow the journey rather than pass through from search.

The newsletter is coming soon. Until then, follow via RSS or email me to get notified.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
Hiding Methods or Property Names by Starting Them with _ to Make Them Private
Next Post
Checking with a Boolean whether a specific value exists in a pandas DataFrame