explain about method overloading and method overriding with
difficult examples
Answer Posted / mayank sharma
Clas A
{
Virtual void hi(int a)
{
}
}
Class B:A
{
public overrid void hi(int a)
{
}
}
Overloading simply involves having a method with the same
name within the class.
Example for Over loading
Class A
{
class a()
{
}
class a(int a)
{
}
}
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What does snprintf return?
Give me some null interfaces in java?
What is meant by class loader? How many types are there?
What is lifetime variable?
Which collections are thread safe in java?
What is a parameter example?
What is the syntax and characteristics of a lambda expression? Explain
What do you mean by inner class in java? Explain
Why deletion in linkedlist is fast than arraylist?
If a variable is declared as private, where may the variable be accessed?
Define an applet in java?
describe synchronization in respect to multithreading? : Java thread
What are the 3 types of loops in java?
What is a conditional equation?
What is a nonetype?