1 / 5

Tarkvara arendamise etapid Klassikaline elutsükkel (“kosk-mudel”)

Tarkvara arendamise etapid Klassikaline elutsükkel (“kosk-mudel”). Valdkonna analüüs Ülesande täpne püstitus Disain. Klassid Programmitekstid. Süsteemianalüüs. Nõuete analüüs. Kavandamine. Kodeerimine. Testimine. Hooldus. Objekt-orienteeritus programmeerimises Klassi mõiste

season
Télécharger la présentation

Tarkvara arendamise etapid Klassikaline elutsükkel (“kosk-mudel”)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tarkvara arendamise etapid Klassikaline elutsükkel (“kosk-mudel”) Valdkonna analüüs Ülesande täpne püstitus Disain. Klassid Programmitekstid Süsteemianalüüs Nõuete analüüs Kavandamine Kodeerimine Testimine Hooldus

  2. Objekt-orienteeritus programmeerimises Klassi mõiste Klassikirjeldus Isend Isendiväli Isendimeetod Konstruktor

  3. Punkt Punkt tasandil on antud oma kahe koordinaadiga. Kolm punkti (mis ei asu ühel ja samal sirgel) määravad alati mingi kolmnurga, st on teatud kindla kolmnurga tippudeks. y (1; 2) (5; 1) x (3; -4)

  4. [vt Aabits. Vihik 2] class Punkt{ private double x; private double y; Punkt(double a, double b){//kon x = a; y = b; }//konstruktor . . . public double kaugus(Punkt p){ return Math.sqrt( (x-p.x( ))*(x-p.x( )) + (y-p.y( ))*(y-p.y( ))); }//kaugus . . . public String toString(){ return "("+Test_PS.ümar(x)+ "; " + Test_PS.ümar(y) + ")"; }//toString Punkt privaatsed isendiväljad: x y isendimeetodid: x( ) y( ) veerand( ) kaugus( ) kaugus(Punkt p) kaugus(Sirge s) toString( )

  5. class Test_Punkt{ static Punkt p1 = new Punkt(1.0, 2.0); static Punkt p2 = new Punkt(5.0, 1.0); static Punkt p3 = new Punkt(3.0, -4.0); public static void main(String[] args){ . . . }//main static void väljastadaKolmnurk(){ . . . }//väljastadaKolmnurk }//Test_Punkt Punkt x: 1.0 y: 2.0 Punkt x: 5.0 y: 1.0 Test_Punkt Punkt p1 Punkt p2 Punkt p3 main( ) väljastadaKolmnurk( ) Punkt x: 3.0 y: -4.0

More Related