#include using namespace std ; class engine { public: int cyclinders ; engine() { } engine(int cyclindersP ) { cyclinders = cyclindersP ; } }; class car { public: const int someConstant ; int& someReference ; engine engineObj ; car(int x1, int x2 , int x3 ) : someConstant(x1) , someReference(x2), engineObj( x3 ) { //someConstant = x1 ; // engineObj( x3) ; //someReference = 10 ; } }; int main() { car carObject( 1 , 2 , 6 ) ; cout << carObject.engineObj.cyclinders << endl ; return(0) ; }