/*
this HTML view was generated with individual toString() methods for each of the
Vehicle, Boat, Automobile and Truck classes.
instead of a toString() just saying "Truck:[BedSize=100, Make=Ford...]"
The truck toString() would return
<div class="card">
<div class="card-body">
<h5 class="card-title">Truck</h5>
<p class="card-text">Bed Size in Cubic Feet: 100</p>
<p class="card-text">Make: Ford</p>
<p class="card-text">Model: F150</p>
<p class="card-text">Year: 2015</p>
<p class="card-text">Number of Wheels: 4</p>
<p class="card-text">Speed in MPH: 80.0</p>
<p class="card-text">Purchase Price: 30000.0</p>
</div>
</div>
*/
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.