Skip to content

Mahalakshmi-IT/Practical-11-Default-Interface-Methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Practical-11-Default-Interface-Methods

Practical 11: Interfaces and Default Interface Methods

  1. Define an interface "Shape" with methods for area and perimeter.
  2. Implement the "Shape" interface in classes like "Rectangle" and "Circle".
  3. Create another interface "Resizable" with a default resizing method.
  4. Implement this interface in the "Rectangle" class and demonstrate the use of the default method.
  5. Implement multiple interfaces in a class and showcase method usage from both interfaces.

About

Practical 11: Interfaces and Default Interface Methods

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors