Question

 Design a class named Car, having registration number, model and engine as its

private members. Here engine is an object of a class called Engine with the private members: Chassis number and make. Define a suitable constructor of Car and override to String() Method to print the details of a car. Assume appropriate data types for the instance members of the classes. Write a Java program to test the above class.

09 Jan 2026
Answer :
Word Count : 122
class Engine { private String chassisNumber; private String make; ``` public Engine(String chassisNumber, String make) { this.chassisNumber = chassisNumber; this.make _________ _____ __________ ____ _________.
___ _________ ______ ___ ___ _____ ___ ________ ________ ____ _____.
______ _________ _____ ___ _____ ___ ________ ___ _____ _______ ______.
______ ________ ____ _______ ________.
__________ ___ ________ _____ ________ ____ _________ _________ ____.
_________ __________ __________ ________ __________ _________ ___ ______ __________.
____ _____ ___ _________ ____ ___ _______ ____ _______ ___.
_____ _______ _________ ________ _________ ____ ________.
__________ ____ _________ ___ ________.
___ ______ ________ ________ _____ __________ ________ _______ ________ ____ ________.
__________ _____ _________ ____ _________ _______ ____.
____ _____ _______ _____ ______ ___ _____ ____ ______.
________ _____ _______.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance  Design a class named Car, having registration number, model and
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→