Challenge: Overloaded Movie Class
Compito
Swipe to start coding
Create a Movie class that supports multiple ways to initialize its fields using overloaded constructors.
- The class must have a default constructor that sets the
Titleto"Unknown"andReleaseYearto0. - The class must have a constructor that takes a
titleparameter and setsTitleto the given value andReleaseYearto0. - The class must have a constructor that takes both a
titleand areleaseYear, and sets the fields accordingly.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 4
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 4.17
Challenge: Overloaded Movie Class
Scorri per mostrare il menu
Compito
Swipe to start coding
Create a Movie class that supports multiple ways to initialize its fields using overloaded constructors.
- The class must have a default constructor that sets the
Titleto"Unknown"andReleaseYearto0. - The class must have a constructor that takes a
titleparameter and setsTitleto the given value andReleaseYearto0. - The class must have a constructor that takes both a
titleand areleaseYear, and sets the fields accordingly.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 4
single