What are the fundamental concepts of OOP?

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

Was this solution helpful to you?

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; } }

Just Added Q & A:

Find solution

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.