Compact stars represent one of the final endpoints of stellar evolution of very massive stars. They are a realisation of cold and extremelly dense interacting nuclear matter, thus provide very valuable information for the understanding of the nature of in-medium nuclear interaction. The proper degrees of freedom for describing such systems are confined quark states – hadrons, however, the derivation of low-energy hadronic theory directly from QCD is intractable at present. Therefore one creates an effective theory guided by symmetry principles from QCD as the limit of underlying fundamental theory. Two different effective approaches (non-linear and density dependent mean field) are discussed in order to understand the basics of compact star physics.