<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Πρώτα Βήματα - Αρχές προγραμματισμού</title><link>https://www.dotnetzone.gr:443/cs/forums/72/ShowForum.aspx</link><description>Αναρωτιέστε τι σημαίνει object; Class; Inheritance; Design pattern; Την απάντηση μπορείτε να την βρείτε εδώ!</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Κάτι απλό σε structs</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54892.aspx</link><pubDate>Mon, 02 Nov 2009 20:37:14 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54892</guid><dc:creator>dtakis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54892.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=72&amp;PostID=54892</wfw:commentRss><description>&lt;P&gt;αχχ! Απόλυτα λογικό :) &lt;/P&gt;
&lt;P&gt;Νιώθω τελείως noobάς τώρα &lt;img src="http://www.dotnetzone.gr/cs/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;&lt;/P&gt;</description></item><item><title>Απ: Κάτι απλό σε structs</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54891.aspx</link><pubDate>Mon, 02 Nov 2009 20:02:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54891</guid><dc:creator>ktsiolis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54891.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=72&amp;PostID=54891</wfw:commentRss><description>Για να δηλώσεις constructor στο struct Person, πρέπει να γράψεις τον constructor &lt;span class="Apple-style-span" style="text-decoration:underline;"&gt;μέσα&lt;/span&gt;&amp;nbsp;στο struct.&lt;div&gt;Δηλαδή:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma, Arial, Helvetica;"&gt;&lt;pre&gt;&lt;span style="background-color:transparent;font-family:'Courier New';color:black;font-size:11px;font-weight:normal;"&gt;&lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;struct&lt;/span&gt; Person
{
            &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; firstName;
            &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; lastName;
            &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;int&lt;/span&gt; age;
       

        &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; Person(&lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; _firstName, &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; _lastName, &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;int&lt;/span&gt; _age)
        {
        firstName &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; _firstName;
        lastName &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; _lastName;
        age &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; _age;            
        }
&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font class="Apple-style-span" face="'Courier New'" size="3"&gt;&lt;span class="Apple-style-span" style="font-size:11px;"&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma, Arial, Helvetica;font-size:13px;white-space:normal;"&gt;&lt;pre&gt;&lt;span style="background-color:transparent;font-family:'Courier New';color:black;font-size:11px;font-weight:normal;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font class="Apple-style-span" face="'Courier New'" size="3"&gt;&lt;span class="Apple-style-span" style="font-size:11px;"&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;font-size:13px;white-space:normal;"&gt;Επίσης η μέθοδος&amp;nbsp;&lt;span class="Apple-style-span" style="font-family:'Courier New';font-size:11px;white-space:pre;"&gt;ToString &lt;span class="Apple-style-span" style="font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;font-size:13px;white-space:normal;"&gt;εκεί που έχει τοποθετηθεί κάνει override την μέθοδο&amp;nbsp;&lt;span class="Apple-style-span" style="font-family:'Courier New';font-size:11px;white-space:pre;"&gt;ToString() &lt;span class="Apple-style-span" style="font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;font-size:13px;white-space:normal;"&gt;της κλάσης&amp;nbsp;&lt;span class="Apple-style-span" style="font-family:'Courier New';font-size:11px;white-space:pre;"&gt;Program &lt;span class="Apple-style-span" style="font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;font-size:13px;white-space:normal;"&gt;και όχι του struct. Για να πετύχεις αυτό που θέλεις δηλαδή θα πρέπει να μπει και αυτό μέσα στο struct.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font class="Apple-style-span" face="Tahoma, Verdana, Arial, Helvetica, sans-serif"&gt;&lt;span class="Apple-style-span" style="white-space:normal;"&gt;Δοκίμασε δηλαδή αυτό:&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font class="Apple-style-span" face="Tahoma, Verdana, Arial, Helvetica, sans-serif"&gt;&lt;span class="Apple-style-span" style="white-space:normal;"&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma, Arial, Helvetica;"&gt;&lt;pre&gt;&lt;span style="background-color:transparent;font-family:'Courier New';color:black;font-size:11px;font-weight:normal;"&gt;&lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;class&lt;/span&gt; Program
    {
        &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;struct&lt;/span&gt; Person
        {
            &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; firstName;
            &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; lastName;
            &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;int&lt;/span&gt; age;       

&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;    &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; Person(&lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; _firstName, &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; _lastName, &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;int&lt;/span&gt; _age)
            {
&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;        firstName &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; _firstName;
        &lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;lastName &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; _lastName;
&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;        age &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; _age;            
&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;    }

&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;    &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;override&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; ToString()
            { 
    &lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;        &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;return&lt;/span&gt; firstName &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; &lt;span style="font-family:'Courier New';font-size:11px;font-weight:normal;"&gt;" "&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; lastName &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; &lt;span style="font-family:'Courier New';font-size:11px;font-weight:normal;"&gt;", age "&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; age;
&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;    }
&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="background-color:transparent;font-family:'Courier New';color:black;font-size:11px;font-weight:normal;"&gt;
        &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;static&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;void&lt;/span&gt; Main(&lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt;[] args)
        {
            Person p &lt;span style="background-color:transparent;font-family:'Courier New';color:red;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="background-color:transparent;font-family:'Courier New';color:blue;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; Person(&lt;span style="font-family:'Courier New';font-size:11px;font-weight:normal;"&gt;"Tony"&lt;/span&gt;, &lt;span style="font-family:'Courier New';font-size:11px;font-weight:normal;"&gt;"Allen"&lt;/span&gt;, 32);
            Console.WriteLine(p);
            Console.Read();
        }
    }&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;</description></item><item><title>Απ: Κάτι απλό σε structs</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54890.aspx</link><pubDate>Mon, 02 Nov 2009 19:52:27 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54890</guid><dc:creator>psid</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54890.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=72&amp;PostID=54890</wfw:commentRss><description>Γιατί πολύ απλά δηλώνεις την μέθοδο Person εκτός εμβέλειας του struct, (μέσα στην κλάση Program) μάλλον απροσεξία ;-)</description></item><item><title>Κάτι απλό σε structs</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54889.aspx</link><pubDate>Mon, 02 Nov 2009 19:31:19 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54889</guid><dc:creator>dtakis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54889.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=72&amp;PostID=54889</wfw:commentRss><description>&lt;P&gt;Μέχρι τώρα πίστευα ότι να δηλώσει ένα struct &amp;amp; έναν constructor με το ίδιο όνομα είναι απλό:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;using&lt;/SPAN&gt; System;
&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;using&lt;/SPAN&gt; System.Collections.Generic;
&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;using&lt;/SPAN&gt; System.Linq;
&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;using&lt;/SPAN&gt; System.Text;

&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;namespace&lt;/SPAN&gt; LessonConsoleApplication2
{
    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;class&lt;/SPAN&gt; Program
    {
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;struct&lt;/SPAN&gt; Person
        {
            &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; firstName;
            &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; lastName;
            &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;int&lt;/SPAN&gt; age;
        }

        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; Person(&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; _firstName, &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; _lastName, &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;int&lt;/SPAN&gt; _age)
        {
        firstName &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; _firstName;
        lastName &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; _lastName;
        age &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; _age;

            
        }

        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;override&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; ToString()
        {
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;return&lt;/SPAN&gt; firstName &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;" "&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;+&lt;/SPAN&gt; lastName &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;", age "&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;+&lt;/SPAN&gt; age;
        }

        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;void&lt;/SPAN&gt; Main(&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt;[] args)
        {
            Person p &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;new&lt;/SPAN&gt; Person(&lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"Tony"&lt;/SPAN&gt;, &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"Allen"&lt;/SPAN&gt;, 32);
            Console.WriteLine(p);
            Console.Read();
        }
    }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;FONT size=2 face=Tahoma&gt;Γιατί όμως επιμένει ο Compiler ότι:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Error&amp;nbsp;1&amp;nbsp;Method must have a return type&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;FONT size=2 face=Tahoma&gt;Γιατί πιστεύει ότι ο Person(string _firstName κτλ) είναι Method;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description></item></channel></rss>