Cosa permette di fare un costruttore?
Java ad oggetti e UML

Quiz
•
Computers
•
10th Grade
•
Hard
Michele Minno
Used 22+ times
FREE Resource
47 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Costruire una classe
Costruire un oggetto
Costruire un programma
Costruire un metodo
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cosa NON posso fare se nella classe Student ho il seguente campo:
private int age;
Accedere al campo age di un oggetto di tipo Student nel Main
Accedere al campo age in un metodo della classe Student
Accedere al campo age nel costruttore della classe Student
Modificare il valore di age in un metodo della classe Student
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cosa posso fare se nella classe Student ho il seguente campo:
protected int age;
Accedere al campo age dall'interno di una classe figlia di Student
Accedere al campo age dall'interno di una classe padre di Student
Accedere al campo age dall'interno di una classe 'sorella' di Student (cioè che condivide con Student la stessa classe padre)
Nessuna delle altre tre risposte
4.
OPEN ENDED QUESTION
2 mins • 1 pt
Perché è meglio che i campi di un oggetto siano privati?
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
2 mins • 1 pt
Che differenza c'è tra una composizione ed un'aggregazione in un diagramma UML?
Evaluate responses using AI:
OFF
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quanti costruttori devo definire esplicitamente in una classe?
Al massimo uno
Obbligatoriamente uno ed uno soltanto
Minimo uno
Posso anche non definirne nessuno
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Quale delle seguenti affermazioni è vera riguardo a questo diagramma (clicca per ingrandire)?
Ogni A è associato ad un B
Ogni A è associato a più B
Ogni A è associato ad al massimo un B
Ogni A è associato ad uno o più B
Create a free account and access millions of resources
Similar Resources on Quizizz
45 questions
VLAN

Quiz
•
10th - 12th Grade
45 questions
Prueba Ingresos HFA

Quiz
•
1st - 12th Grade
50 questions
EXAMEN INFORMÁTICA 3°

Quiz
•
10th Grade
45 questions
TIC II. Seguridad informatica

Quiz
•
10th - 12th Grade
50 questions
TEST EXCEL

Quiz
•
9th - 12th Grade
52 questions
Reti e sicurezza

Quiz
•
9th - 12th Grade
50 questions
SDAC-M8

Quiz
•
10th - 12th Grade
50 questions
HTML

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University