Get Writing Help
WhatsApp
    ✍ ️Get Free Writing Help
WhatsApp

. Create an abstract class ‘Bank’ with abstract methods ‘getBalance’ and ‘deposit’. ‘BankA’, ‘BankB’ and ‘BankC’’ are subclasses of class ‘Bank’, each having methods named ‘getBalance’ and ‘deposit’. 1000, 1500 and 2000 are deposited in banks A, B and C respectively using the ‘deposit’ method. Call the ‘getBalance’ method to print balance for the three classes. 2. Write a Java program to – Create an interface called Vehic


Write My Assignment FREE

Course: CSE – 202

Task No: 3

1. Create an abstract class ‘Bank’ with abstract methods ‘getBalance’ and ‘deposit’. ‘BankA’, ‘BankB’ and ‘BankC’’ are subclasses of class ‘Bank’, each having methods named ‘getBalance’ and ‘deposit’. 1000, 1500 and 2000 are deposited in banks A, B and C respectively using the ‘deposit’ method. Call the ‘getBalance’ method to print balance for the three classes.

2. Write a Java program to –

  • Create an interface called Vehicle. In this interface create a method called printData()
  • Implement interface Vehicle by classes Car, SUV, Minivan
  • In each class write a method printString() and create a string which holds all data
  • In the method printData() in each class prints the data using printString() method.

Submission:

  • A lab report containing codes and screenshot of outputs. [File format: task_no_ID.pdf, example: task_3_20191234.pdf|
  • Don’t submit any zip file.

Penalty:

  • Plagiarism: If it can be proven beyond reasonable doubt that the assignment code(s) was plagiarized, the code will be invalid and no marks will be attributed.

Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes
Write My Assignment FREE Get A Free Quote →
Limited Offer     Get 25% off your first order — use code STUDYLINK25 at checkout    Claim Now
 
Don`t copy text!