Write a definition of a class (called Vehicle), which has three data members: model (data type: string),
Fantastic news! We've Found the answer you've been seeking!
Question:
- model (data type: string),
- price (data type: double),
- crashRating (data type; int).
- All data should be public.
c) Allocate a new Vehicle object, assign it using v2, print the brand, and free the allocation.
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1337627900
13th edition
Authors: Carlos Coronel, Steven Morris
Posted Date: