Laborator 03
Problema 1:
Implement a RingBuffer with a fixed capacity (push(), pop(), peakEnd(), peakStart()) isEmpty(), toString())
Problema 2:
Implement a class with a fromJson() constructor + toJson() (without using jsonDecode)
class Exemplu {
double varA;
int varB;
String varC;
List <String> varD;
Map<String, int> varE;
}
Problema 3:
a) Create a class CalendarBooking that has 3 private attributes:
- Id - which is generated automatically and represents the order of the bookings in the calendar Data Base (starting from 1 and can't be changed)
- Name (can't be changed)
- DateTime (can be modified only to a date in the future)
b) Create a constructor that uses "Initializer list" to initialize the name.
c) Create a static method that prints the clients name and the bookings datetime (sorted by datetime).
d) Create a small test program (main).