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


Please Help Members By Posting Answers For Below Questions

Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3825


What is multilevel inheritance?

723


What is object-oriented programming? Webopedia definition

717


What is meant by oops concept?

608


Can we define a class within the interface?

551






Why do we use polymorphism?

573


What are the 4 main oop principles?

679


What is the oops and benefits of oops programming?

549


What is this pointer in oop?

551


Can abstract class have normal methods?

610


What is difference between oop and pop?

611


What is object in oop with example?

695


What is inheritance in oop?

597


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.

1635


What is a class in oop?

597