classa Pinguin
user_1419384
c_cpp
10 months ago
597 B
8
Indexable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Tema {
internal class Pinguin: Animal {
bool areIgloo;
public Pinguin(bool _areIgloo,string nume, int varsta, float greutate)
:base(nume,varsta,greutate) {
this.areIgloo = _areIgloo;
}
public override string ToString() {
return base.ToString() + (areIgloo ? " are Igloo" :
" nu are Igloo");
}
}
}
Editor is loading...
Leave a Comment