Реализовать задачу с абстрактными классами - C#
Формулировка задачи:
Листинг программы
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace abstr
- {
- abstract class vehile
- {
- public double maxSpeed
- {
- get { return maxSpeed; }
- set { maxSpeed = value; }
- }
- public double carSpeed
- {
- get { return carSpeed; }
- set { carSpeed = value; }
- }
- public double yearConstr
- {
- get { return yearConstr; }
- set { yearConstr = value; }
- }
- public double probeg
- {
- get { return probeg; }
- set { probeg = value; }
- }
- public abstract void SpeedUp();
- public abstract void SpeedDown();
- }
- class Car
- {
- }
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- }
Решение задачи: «Реализовать задачу с абстрактными классами»
textual
Листинг программы
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace abstr
- {
- abstract class vehile
- {
- public double maxSpeed
- {
- get { return maxSpeed; }
- set { maxSpeed = value; }
- }
- public double carSpeed
- {
- get { return carSpeed; }
- set { carSpeed = value; }
- }
- public double yearConstr
- {
- get { return yearConstr; }
- set { yearConstr = value; }
- }
- public double probeg
- {
- get { return probeg; }
- set { probeg = value; }
- }
- public abstract void SpeedUp();
- public abstract void SpeedDown();
- }
- class Car
- {
- }
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- }
ИИ поможет Вам:
- решить любую задачу по программированию
- объяснить код
- расставить комментарии в коде
- и т.д