א.
String name;
Double speed;
Int mem;
Double price;
Public Computer
(string name, double speed, int mem, double price)
Void UpdateMem(int addition)
Int GetMem()
Override string ToString()
ב.
ג. public static void Main(string[]args)
ד. {
ה. computer comp = new computer (Meabed Kolshehu, 15, 32, 2000)
ו. Console.WriteLine("comp = " + comp);
ז. comp.UpdateMem(96);
ח. Console.WriteLine("comp = " + comp);
ט. }
י. using System;
יא.
יב. namespace ConsoleApp3
יג. {
יד. internal class Program
טו. {
טז. public class computer
יז. {
יח. String name;
יט. double speed;
כ. int mem;
כא. double price;
כב.
כג. public computer (string name, double speed, int mem, double price)
כד. {
כה. this.name = name;
כו. this.speed = speed;
כז. this.mem = mem;
כח. this.price = price;
כט. }
ל. public void UpdateMem(int addition)
לא. {
לב. this.mem += addition;
לג. }
לד. public int GetMem()
לה. {
לו. return this.mem;
לז. }
לח. public override string ToString()
לט. {
מ. return "Computer.[Name: " + this.name + ", speed: " + this.speed + ", mem: " + this.mem + ", price: " + this.price+ "]";
מא. }
מב.
מג. }
מד. }
מה. }
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}