Explain about constructor overloading and method overloding
Answers
Answered by
1
when you give different arguments to a constructor.
example
class abc
{
abc ( )
....
abc (int a)
....
abc (int a, int b)
....
}
the constructor abc has different arguments in brackets , called constructor overloading.
example
class abc
{
abc ( )
....
abc (int a)
....
abc (int a, int b)
....
}
the constructor abc has different arguments in brackets , called constructor overloading.
Similar questions