Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a composite data type?
Think about combining different data types.
Give an example of a primitive data type.
What are the basic types you know?
What is a class?
Think about the definition of objects.
Classes can only contain primitive data types.
Consider what types of data can be stored in a class.
Create a class representing a 'Vehicle'. Include properties like model, year, and mileage. Provide methods to display this information and calculate fuel efficiency.
Consider what attributes define a vehicle and what methods you might need.
How would you modify the 'Student' class to include a method that calculates the average of marks from an array of grades?
Think about how to process an array to find an average.
5 more questions in this section. Enroll free to practise them all.
Enroll free