Skip to content

Add additional method call for overloading example - #2

Merged
yashika-kumari merged 1 commit into
mainfrom
yashika-kumari-patch-2
Jul 12, 2026
Merged

Add additional method call for overloading example#2
yashika-kumari merged 1 commit into
mainfrom
yashika-kumari-patch-2

Conversation

@yashika-kumari

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 12, 2026 08:29
@yashika-kumari
yashika-kumari merged commit bda8e09 into main Jul 12, 2026
1 check passed
@yashika-kumari
yashika-kumari deleted the yashika-kumari-patch-2 branch July 12, 2026 08:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the OverloadingAndOverriding example program by adding an extra overloaded method invocation in main, expanding the compile-time overloading demonstration.

Changes:

  • Added an additional multiply(int, int, int) call in the overloading section of main.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// Overloading (compile time)
System.out.println(obj1.multiply(2, 3)); // 6
System.out.println(obj1.multiply(2, 3, 4)); // 24
System.out.println(obj1.multiply(5, 4, 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants