OOPS Interview Questions
Questions Answers Views Company eMail

why overriding?

3 7013

Write a program in c++ to read two floating point numbers and find their sum and average.

2 8425

explain sub-type and sub class? atleast u have differ it into 4 points?

Infosys,

1808

What is DeadlyDiamondDeathProblem ?

1 3143

Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

Wipro,

13 29266

Write a program to multiply 3x3 matrics

1 3296

Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345

7 24389

1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.

Tech Mahindra,

1 3670

1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 9665

write a program which best describes polymorphism in real world?

CTS, Infosys, NexGen,

2 8245

what uses of c++ language?

3 5507

143.what is oops principles?

10 9103

Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1629

Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.

1 3184

What's the full form of STL?

2 11778


Post New OOPS Questions

Un-Answered Questions { OOPS }

what's the basic's in dot net

1715


What is inheritance in oop?

579


What is destructor in oop?

597


How can you overcome the diamond problem in inheritance?

741


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.

1606






How is polymorphism achieved?

561


What is destructor give example?

581


Can bst contain duplicates?

646


Which type does string inherit from?

587


What is encapsulation in oops?

516


What is oops and why we use oops?

548


What are functions in oop?

559


What is super in oop?

575


What is the purpose of polymorphism?

652


What is the real time example of inheritance?

614