Answer Posted / vijayan
object
class
message passing
inheritance
reuseablity
polymorphism
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
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 is byval and byref? What are differences between them?
What are the 4 pillars of oop?
What is encapsulation selenium?
2. Give the different notations for the class.\
What is a null tree?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is abstract class in oops?
What is persistence in oop?
What is difference between polymorphism and inheritance?
What is a class oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is encapsulation with real life example?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
How to call a non virtual function in the derived class by using base class pointer