GOAL: Understanding Multilevel Inheritance, Abstraction Create an abstract class called HeadOffice. Have below normal methods in it. 2.1. public void check_accounts(int amount) – Have a print statement inside here 2.2. public int pay_tax(int amount) – return this.amount from here Have an abstract method as below. 3.1. public abstract void receive_Customers() Create another abstract class calledContinue reading “Assignment – 6”
Tag Archives: core
Java Basics
Object:- It is a memory reference of a class. Realtime entity/Physical Entity Class:- Collection of objects ex(Files) Logical Entity Inheritance:- Inheritance is a mechanism in which one class acquires the property of another class. For example, a child inherits the traits of his/her parents. With inheritance, we can reuse the fields and methods of theContinue reading “Java Basics”