Doubt in OOP's concept


what is wrong with my code…??

Hi, Visaal.

Your code is almost correct.
but you cannot assign directly the class variable as by declaring it from outside as honda.cc=1500.

Kindly look at the corrected code for your reference.

All the best!