Данный отчёт сгенерирован 04.04.2023 06:21:13 UTC.
HTML версия (этот сайт) сгенерирован 04.04.2023 06:21:31 UTC.
Коммит: [bfeb65b9] add automatic zip creation 04.04.2023 06:21:13
HTML версия (этот сайт) сгенерирован 04.04.2023 06:21:31 UTC.
Коммит: [bfeb65b9] add automatic zip creation 04.04.2023 06:21:13
Задача: Перевизначення ToString
04.04.2023 06:21:13
Описание: Оголосіть клас Apple з відкритими властивостями:
string Color
string Size
Перевизначте в ньому метод ToString таким чином, щоб він повертав рядок
"Apple: колір, розмір"
де замість слів "колір" та "розмір" повинні стояти значення властивостей Color і Size відповідно.
04.04.2023 06:21:13
Решений: 45
04.04.2023 06:21:13
Перевизначення ToString
04.04.2023 06:21:13
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple: {Color}, {Size}";
}
class Apple{
public string Color{get;set;}
public string Size{get;set;}
public override string ToString() => $"Apple: {Color}, {Size}";
}
class Apple {
public string Color {get; set;}
public string Size {get; set;}
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString() => $"Apple: {Color}, {Size}";
}
class Apple{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString() => $"Apple: {Color}, {Size}";
}
public class Apple
{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
public class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"{nameof(Apple)}: {Color}, {Size}";
}
}
class Apple{
public string Color;
public string Size;
public override string ToString(){
return $"Apple: {Color}, {Size}";
}
}
class Apple {
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color},{Size}";
}
}
class Apple
{
public string? Color { get; set; }
public string? Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color{get;set;}
public string Size{get;set;}
public override string ToString()=>"Apple: "+Color+", "+Size;
}
class Apple
{
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple{
public string Color;
public string Size;
/*public Apple(string color, string size){
Color=color;
Size=size;
}*/
public override string ToString()
{
return $"{nameof(Apple)}: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return "Apple: "+Color+", "+Size;
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public Apple() { }
public Apple(string color, string size)
{
Color = color;
Size = size;
}
public override string ToString() => $"Apple: {Color}, {Size}";
}
class Apple {
public string Color;
public string Size;
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string? Color { get; set; }
public string? Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple{
public string Color {get; set;}
public string Size{get; set;}
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color{get; set;}
public string Size{get; set;}
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"{this.GetType().Name}:{Color},{Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color} , {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple: {Color}, {Size}";
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple{
public string Color {set;get;}
public string Size {set;get;}
public override string ToString()=>$"Apple: {Color}, {Size}";
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; } = string.Empty;
public string Size { get; set; } = string.Empty;
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {this.Color}, {this.Size}";
}
}
public class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple: {Color}, {Size}";
}
public class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple : {Color}, {Size}";
}
class Apple
{
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString(){
return $"Apple: {Color}, {Size}";
}
}
class Fruit
{
public Fruit()
{
}
public string Color;
public string Size;
}
class Apple : Fruit
{
public Apple()
{
}
public override string ToString()
{
string res = GetType() + ": " + this.Color + ", " + this.Size;
return res;
}
}
public class Apple
{
public string Color;
public string Size;
public override string ToString(){
return $"Apple: {this.Color}, {this.Size}";
}
}
public class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
public class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
class Apple
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return String.Format($"Apple:{Color}, {Size}");
}
}
class Apple {
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple: {Color}, {Size}";
}
public string Color{get;set;}
public string Size{get;set;}
public override string ToString() => $"Apple: {Color}, {Size}";
}
public string Color {get; set;}
public string Size {get; set;}
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}
{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString() => $"Apple: {Color}, {Size}";
}
public string Color {get; set;}
public string Size {get; set;}
public override string ToString() => $"Apple: {Color}, {Size}";
}
{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"{nameof(Apple)}: {Color}, {Size}";
}
}
public string Color;
public string Size;
public override string ToString(){
return $"Apple: {Color}, {Size}";
}
}
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color},{Size}";
}
}
{
public string? Color { get; set; }
public string? Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color{get;set;}
public string Size{get;set;}
public override string ToString()=>"Apple: "+Color+", "+Size;
}
{
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
public string Color;
public string Size;
/*public Apple(string color, string size){
Color=color;
Size=size;
}*/
public override string ToString()
{
return $"{nameof(Apple)}: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return "Apple: "+Color+", "+Size;
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public Apple() { }
public Apple(string color, string size)
{
Color = color;
Size = size;
}
public override string ToString() => $"Apple: {Color}, {Size}";
}
public string Color;
public string Size;
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}
{
public string? Color { get; set; }
public string? Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
public string Color {get; set;}
public string Size{get; set;}
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}
{
public string Color{get; set;}
public string Size{get; set;}
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"{this.GetType().Name}:{Color},{Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color} , {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple: {Color}, {Size}";
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
public string Color {set;get;}
public string Size {set;get;}
public override string ToString()=>$"Apple: {Color}, {Size}";
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; } = string.Empty;
public string Size { get; set; } = string.Empty;
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {this.Color}, {this.Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple: {Color}, {Size}";
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() => $"Apple : {Color}, {Size}";
}
{
public string Color;
public string Size;
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
public string Color {get; set;}
public string Size {get; set;}
public override string ToString(){
return $"Apple: {Color}, {Size}";
}
}
{
public Fruit()
{
}
public string Color;
public string Size;
}
class Apple : Fruit
{
public Apple()
{
}
public override string ToString()
{
string res = GetType() + ": " + this.Color + ", " + this.Size;
return res;
}
}
{
public string Color;
public string Size;
public override string ToString(){
return $"Apple: {this.Color}, {this.Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color {get; set;}
public string Size {get; set;}
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return $"Apple: {Color}, {Size}";
}
}
{
public string Color { get; set; }
public string Size { get; set; }
public override string ToString()
{
return String.Format($"Apple:{Color}, {Size}");
}
}
public string Color { get; set; }
public string Size { get; set; }
public override string ToString() {
return $"Apple: {Color}, {Size}";
}
}