Answer Posted / janet
Method overloading: when a method in a class having the
same method name with different arguments is said to be
method overloading.
Method Overridding: when a method in a class having the
same method name with same arguments is said to be method
overridding.
| Is This Answer Correct ? | 21 Yes | 5 No |
Post New Answer View All Answers
What are different types of inner classes ?
what is synchronization and why is it important? : Java thread
what is object-oriented programming in java?
Does java map allow duplicates?
How to create com object in Java?
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
Can a static class have a constructor java?
What does += mean coding?
How do you create a first line indent?
What is a treeset class?
What is the difference between equals() and == in java?
What is main method?
What is collection api?
What does those terms actually mean included in the j.d.k i.6?
What do you mean by an interface in java?