Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
classicalInheritance.js
Upload User: shen332233
Upload Date: 2021-09-03
Package Size: 7478k
Code Size: 1k
Category:
Ajax
Development Platform:
Java
- function Vehicle() {
- var wheelCount = 4;
- var curbWeightInPounds = 4000;
- this.getWheelCount = function() {
- return wheelCount;
- }
- this.setWheelCount = function(count) {
- wheelCount = count;
- }
- this.getCurbWeightInPounds = function() {
- return curbWeightInPounds;
- }
- this.setCurbWeightInPounds = function(weight) {
- curbWeightInPounds = weight;
- }
- this.refuel = function() {
- return "Refueling Vehicle with regular 87 octane gasoline";
- }
- this.mainTasks = function() {
- return "Driving to work, school, and the grocery store";
- }
- }
- function SportsCar() {
- this.refuel = function() {
- return "Refueling SportsCar with premium 94 octane gasoline";
- }
- this.mainTasks = function() {
- return "Spirited driving, looking good, driving to the beach";
- }
- }
- function CementTruck() {
- this.refuel = function() {
- return "Refueling CementTruck with diesel fuel";
- }
- this.mainTasks = function() {
- return "Arrive at construction site, extend boom, deliver cement";
- }
- }