Write the coding for the following OOP base concepts. 1. Creates vehicle class It has properties No of wheel?
-
-
Answer:
You haven't provided much information, but based on the info above, you get something like this: public class Vehicle { public int numWheels; public Vehicle (int n) { numWheels = n; } }
Niro at Yahoo! Answers Visit the source
Other answers
UI didnt get your question properly.. So here is my another answer class Vehicle { private double VIN number; private double make; private double model; private double price; private double miles per gallon; private double tank size; private double year; { public Vehicle1(double tempA, double tempB, double tempC, double tempD, double tempE, double tempF, double tempG) VIN number = tempA; make = tempB; model = tempC; price = tempD; miles per gallon = tempE; tank size = tempF; year = tempG; } { public Vehicle2(double tempH, double tempI, double tempJ, double tempK) VIN number = tempH; make = tempI; model = tempJ; year = tempK; } }
Related Q & A:
- Is it correct to extend a bean class and write a class which holds logic to populate the bean we extend?Best solution by stackoverflow.com
- how to How to change button properties from another class?Best solution by stackoverflow.com
- Write the chemical formula for the following compounds?Best solution by Yahoo! Answers
- How big is the wheel from wheel of fortune?Best solution by ChaCha
- Write a balanced net ionic equation for the following reaction?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.