Programowanie (PHP, Java...)

Parametry domyślne - cukierek składniowy?

25 marca, 2006 o 20:58:33 Dodaj komentarz Poziom: 0 Permalink

Co jest prostsze do zrozumienia:

  1. public AbstractGraphData(Set nodes, GraphNode first, Set
  2. firsts = new HashSet(), boolean constant = false) throws
  3.         //(...)
  4. }

Czy może:

  1. public AbstractGraphData(Set nodes, GraphNode first) throws
  2.         this(nodes, first, new HashSet());
  3. }
  4. public AbstractGraphData(Set nodes, GraphNode first, Set firsts) throws
  5.         this(nodes, first, firsts, false);
  6. }
  7. public AbstractGraphData(Set nodes, GraphNode first, Set firsts, boolean
  8. constant) throws NullPointerException {
  9.         //(...)
  10. }

Moim zdaniem to pierwsze...

Komentarze do wpisu

Możesz śledzić odpowiedzi poprzez kanał RSS. Możesz dodać komentarz lub zostawić ślad (trackback) ze swojego bloga.

#

;p

Prymitywnie...

29 marca 2006, 23:09:21

#

Uzytkownik

Co jest prymitywne?
PS.
Przepraszam, za wygląd. Jogger wycina spacje...

30 marca 2006, 07:04:00

Dodaj komentarz

Textile Lite włączony ( szczegółowy opis znaczników ):