Skip to content

acciojob/polymorphism-adi1399

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment to understand polymorphism.

STEPS:

/*

  • Task 1:
  • create a class Product inside Main class
  • Task 2:
  • create object of Product in Main function called p
  • Task 3:
  • create a method of following defination
  • public int product(int x, int y) {}
  • call this method from Main using Product class object p
  • Task 4:
  • create a Overloaded method product of following defination
  • public int product(int x, int y, int z) {}
  • call this method also from Main using Product class object p
  • Task 5:
  • create a Overloaded method product of following defination
  • public double product(double x, double y) {}
  • call this method also from Main using Product class object p
  • Observations:
  • This class contains 3 classes with same name, but it complie & run successfully

*/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Generated from acciojob/polymorphism