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

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.

1642


What is static modifier?

634


What is basic concept of oop?

702


what are the ways in which a constructors can be called?

1585


is there any choice in opting subjects like 4 out of 7

1733






Why is there no multiple inheritance?

572


Can bst contain duplicates?

671


Get me a number puzzle game-program

1694


c++ program to swap the objects of two different classes

1767


What is difference between polymorphism and inheritance?

619


What is difference between oop and pop?

620


Can you inherit a private class?

635


What is protected in oop?

604


what type of questions

1697


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2578