Answer to Question #322814 in C# for Nishu

Question #322814

Write a program to create a vehicle Class with nax_speed and mileage instance attributes

1
Expert's answer
2022-04-03T07:59:53-0400
using System;
using System.Collections.Generic;
using System.IO;

class Vehicle
{
    double max_speed;
    double mileage;

    public Vehicle(double max_speed, double mileage)
    {
        this.max_speed = max_speed;
        this.mileage = mileage;
    }
}

class Program
{
    static void Main(String[] args)
    {
        Vehicle car = new(111, 2500);
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS