OOPS

  1. Design a class Rectangle
    data members:
    length
    breadthmember function / method:
    setDimension()
    area()
    perimeter()
    ——————————————————–
  2. Design a class Worker
    data members:
    wages
    wdaysmember function / method:
    setData()
    payment()
    ——————————————————–
  3. Design a class Box
    data members:
    length
    breadth
    heightmember functions / methods:
    setDimension()
    volume()
    ——————————————————–
  4. Design a class Rectangle
    data members:
    length
    breadth
    member functions / methods:
    setDimension()
    area()
    perimeter()It must overload setDimension() method twice:
    – by passing 1 parameter / argument
    – by passing 2 parameter / argument
    ——————————————————–
  5. Design a class Box
    data members:
    length
    breadth
    height
    member functions / methods:
    volume()It must contain 3 constructors:
    – 1 parameter / argument
    – 2 parameter / argument
    – 3 parameter / argument
    ——————————————————–
  6. Design a class Account
    data members:
    account_number
    balance
    member functions / methods:
    deposit()
    withdraw()
    showBalance()
    ——————————————————–
  7. Design a class Set
    data members:
    3 numbersmember functions / methods:
    SUM()
    MEAN()
    MAX()
    MIN()
    ——————————————————–
  8. Design a class Student
    data members:
    roll_number
    namemember functions / methods:
    setData()
    getData()
    ——————————————————–
  9. Design a class Account
    data members:
    account_number
    balance
    interest_rateinterest_rate must be shared by all objects (static modifier) and its default value 10.25member function:
    interest(no_of_years)
    ——————————————————–
  10. Design a class Student
    data members:
    roll_number
    namemember functions / methods:
    getData()roll_number must be automatically generated.It also keep track of total number of Students.
    ——————————————————–
  11. Design a package MyCircle and MyRectangle
    data members:
    radius
    length
    breadthmember functions / methods:
    area()
    circumference()
    perimeter()
    ——————————————————–
  12. Design a class Studentdata members:
    roll_number
    namemember functions / methods:
    getData()
    showData()Create 5 objects of Student using Array
    ——————————————————–
  13. Design a class Student and List ClassRoom
    add list of Students in ClassRoom
    display List
    ——————————————————–
  14. Design a class Account and List Bank
    add list of Account in Bank
    display List
    ——————————————————–
  15. Create array of Student Objects
    data members:
    roll_no
    name
    collegemember functions / methods:
    readData()
    showData()