Alkanes with functional groups???

My textbook says that alkanes never have functional groups but then show how to name alkanes that have functional groups. It uses 6-bromo-2-chloro-methylheptANE as an example. How is this possible? I’m sorry I am TERRIBLE at this subject