What is OOPS and How it is different from Procedural
Programming ?
Answer Posted / manjeet
The focus of procedural programming is to break down a
programming task into a collection of variables, data
structures, and subroutines.
whereas in object-oriented programming it is to break down
a programming task into objects. Either method can be valid
for accomplishing a specific programming task.
Is This Answer Correct ? | 21 Yes | 18 No |
Post New Answer View All Answers
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is multilevel inheritance?
What is object-oriented programming? Webopedia definition
What is meant by oops concept?
Can we define a class within the interface?
Why do we use polymorphism?
What are the 4 main oop principles?
What is the oops and benefits of oops programming?
What is this pointer in oop?
Can abstract class have normal methods?
What is difference between oop and pop?
What is object in oop with example?
What is inheritance 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 is a class in oop?