Write Class Definition Component Class H File Two Public String Fields Named Manufacturer Q37233695

Write a class definition of theComponent class (in .h file), which has two public string fieldsnamed manufacturer andproduct_name and an initializing constructor. Givean implementation of the constructor as it would appear in the .cppfile.

.h

.cpp

(b)   Write a classdefinition of the Wheel class, which inherits all fields from theComponent class and adds a public floating point field nameddiameter. It has an initializing constructor thatinitializes all fields. Give an implementation of the constructoras it would appear in the .cpp file; it should make use of otherinitializing constructors where possible.

.h

.cpp

(c)    Write aclass definition of the Seat class, which inherits all fields fromthe Component

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.