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
What is oops in programming?
Why is static class not inherited?
What does and I oop mean?
Why polymorphism is used in oops?
Why do we need oop?
is there any choice in opting subjects like 4 out of 7
Why do we use class in oops?
can inline function declare in private part of class?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What are the types of abstraction?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.
What are the 4 pillars of oop?
Write a program to reverse a string using recursive function?