[Webinar] Streamline your web hosting managementRegister Today


Inheritance Method Overriding

Posted on 2004-10-22
Medium Priority
Last Modified: 2010-03-31
if I have a method in a parent class like:

public void checkMonthlyFee()
     // method operations here

and I want to override this method with different operations in a child class, would I just rewrite that method in the child class as:

public void checkMonthlyFee()
     // NEW method operations here
Question by:smkJackstraw

Accepted Solution

kiranhk earned 200 total points
ID: 12382712
yes. you can override and do whatever u want in the child class. thats the reason u extend a class and override a method to get some completely different operations done.

you can check out this link for the details



Author Comment

ID: 12382742
Yes, thanks for the links in your previous post.  I read that and just wanted to make sure I understood what I was reading.

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question