Assignment 04


#Questions
1There will be three classes User, Customer and a main class. User Class is an abstract class. In that class there are three protected variable called name, loginId and password. There is also a abstract method called display. In Customer class there will be two string variable email and cellno. This class will extends the User class. So make this three class, implement as you like and call them form the main class.
2There will be Four classes Animal, Habit and Dinosaur and a main class.
Animal Class is a abstract class. In that class there is one string variable called Kingdom and a abstract method called display.
Habit class is a interface class. In that class two method are called running and eating.
And the last one is Dinosaur. This class will extends the Animal class and implements the Habit class. It has also Two variable called age and size.
So make this three class, implement as you like and call them form the main class.
3Create an abstract class 'Bank' with an abstract method 'getUserBalance'. $100, $150 and $200 are deposited in banks A, B and C respectively. 'BankA', 'BankB' and 'BankC' are subclasses of class 'Bank', each having a method named 'getUserBalance'. Call this method by creating an object of each of the three classes.

Google Form Submission Link
 Click here!!