×
MY GOAL IS TO PAY BACK MY PARENTS
--Your friends at LectureNotes
Close

Lab Manuals for Object Oriented Programming Using JAVA - OOPJ By Seyed Morteza Abdollahian

  • Object Oriented Programming Using JAVA - OOPJ
  • Practical
  • 287 Views
  • 15 Offline Downloads
  • Uploaded
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

ESc101 : Fundamental of Computing I Semester 2008-09 Lecture 22 Object Oriented programming • Method Overloading in Java. • Constructor • Building complex classes using Point class Circle, Triangle,... 1

Text from page-2

Method overloading in JAVA Question : In a class, can there be two methods with the same name? Yes, but they should differ in Types of Number of parameters 2

Text from page-3

Method overloading in JAVA Question : In a class, can there be two methods with the same name? Yes, but they should differ in the their signatures 3

Text from page-4

Signature of method return type method name (type1, type2, ...) For example, • public static int absolute(int i) has signature int absolute(int) • public static double absolute(int i, double d) has signature double absolute (int, double) Note : The order matters in the parameter list. 4

Lecture Notes