- Create a class Employee with the following properties and methods:
- Salary (property) (int)
- getSalary (method returning int)
- name (property) (String)
- getName (method returning String)
- setName (method changing name)
- Create a class cellphone with methods to print “ringing…”, “vibrating…”, etc.
- Create a class Square with a method to initialize its side, calculating area, perimeter etc.
- Create a class Rectangle & problem 3.
- Create a class TommyVecetti for Rockstar Games capable of hitting (print hitting…), running, firing, etc.
- Repeat problem 4 for a circle.
Handwritten Notes: Click to Download
Ultimate Java Cheatsheet: Click To Download