instead of copypasta can we inherit and override methods?