.NET Course 2: The Revenge of C#

Posted by on Apr 12, 2011 in Coding, IT College | 0 comments

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Pythagoras.");
            Console.Write("Kaatet 1: ");
            double a = Double.Parse(Console.ReadLine());
            Console.Write("Kaatet 2: ");
            double b = Double.Parse(Console.ReadLine());
            double c = Math.Sqrt((a*a) + (b*b));
            Console.Write("Hüpotenuus: ");
            Console.WriteLine(c.ToString());
        }
    }
}

Teemad:

  • Objektid, klassid, nende käitumine mälus
  • Meetodid, andmetüübid
  • Method overloading, operator overloading
  • Konstruktor, destruktor
  • private, public, protected
  • Inheritance ("pärimine")
  • Overriding
  • Setters, getters
  • Abstract classes

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>