Answer the following:
1. Create a ClassCar with the following instance variables: model(String), Brand
(String), maxspeed (double) Note:use encapsulation (all variables are private). (3 Marks)
2. Create a non-defaultconstructor for Class Car which takes 3parameters. (2 Marks)
3. Create a get and setmethods for instance variable model variable only.(2 Marks)
4. Create PrintInfo()method which prints all three instance variables. (2 Marks)
5. Create a subclassGasCar with instance variable TankSize (double)..(2 Marks)
6. Create a non-defaultconstructor for sub-class GasCar which takes 4parameters. (2 Marks)
7. Override PrintInfo()method which prints all four parameters. (2 Marks)
8.
PayPal Gateway not configured
PayPal Gateway not configured