Answer Posted / dinesh
OVERLOADING:Two methods are having same name and different arguments in same class
OVERRIDING: Two methods are having same name and same arguments also same return types in its class and sub class (from 1.5 on words co-varient return types also allowed this is applicable for only for object types not primitives)i.e some relation either parent to child or child to parent
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why do we use oop?
What are the advantages of polymorphism?
What are oops functions?
What is polymorphism and why is it important?
What is the point of oop?
What are the three main types of variables?
What is the highest level of cohesion?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
can inline function declare in private part of class?
What is the purpose of polymorphism?
What are the 4 main oop principles?
What are benefits of oop?
Why is polymorphism needed?
Can static class have constructor?
What type of loop is a for loop?