Answer Posted / praveen
1. Encapsulation: Binding of Code and data together in a
single entity
2. Polymorphism: One name many properties (funtion
Overloading)
3. Inheritance:Acquiring properties of one object to another
| Is This Answer Correct ? | 233 Yes | 46 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.
Why it is called runtime polymorphism?
What is the difference between a constructor and a destructor?
What is the difference between abstraction and polymorphism?
What is the diamond problem in inheritance?
What is static in oop?
What is encapsulation with example?
What is the difference between static polymorphism and dynamic polymorphism?
What is ambiguity in inheritance?
What is the point of oop?
What is abstraction encapsulation?
Who invented oop?
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?
write a program to find 2^n+1 ?
How is class defined?