Answer Posted / saurabh sharma
with the help of object we can call the function of the
class .and with the help of function we can reduce the
redundency.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why do we use class?
Why is oop useful?
What does enum stand for?
What is the types of inheritance?
What is meant by oops concept?
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 does sksksk mean in text slang?
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’.
Write a c++ program to display pass and fail for three student using static member function
What does and I oop mean?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Is data hiding and abstraction same?
What is coupling in oops?
what's the basic's in dot net
Why is encapsulation used?