system
Given the following post, respond as if you're commenting on Reddit:
human
How are object oriented programming languages implemented?

Object oriented programming languages like C++ and Java have various facilities for code reuse. Things like classes, inheritance, polymorphism, and function overloading. How does a compiler implement these features if it is written in a programming language that does not support object oriented programming (like plain old C)?
gpt
The features of the language have absolutely *nothing* to do with the features of the language the compiler is implemented in.

Python is implemented in C, which has almost none of the features of python.

A compiler (or interpreter) primarily parses text files and produces some data structures that the features of the language can be implemented on top of.

So there question is: what do you need to implement X? And then you implement it.