Answer Posted / p.madhupriya
virtual keyword we can call all the funtion of
same name used in different class by creating pointer of
the base class
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
write a program that takes input in digits and display the result in words from 1 to 1000
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is abstraction in oops with example?
Write a program to reverse a string using recursive function?
What are the benefits of polymorphism?
What is the difference between abstraction and polymorphism?
What is class encapsulation?
What does <> mean pseudocode?
What is the real life example of polymorphism?
What are the important components of cohesion?
Can we define a class within the interface?
What is object and class in oops?
Why is polymorphism important in oop?
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 classes oop?