OOPS Interview Questions
Questions Answers Views Company eMail

How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

IntraLogic,

1 13395

Contrast OOP and SOA. What are tenets of each?

Siebel Systems, Wipro,

1 16493

why c++ is called OOPS? waht is inherutance? what is compiler?

5 14870

What normal C constructs work differently in C++?

2 4842

Why and when is a virtual destructor needed?

5 15166

Why a "operator=(...)" when there is a copy ctor?

2 5102

what is object slicing?

L&T, Wipro,

9 47276

who is the founder of c++?

Hexaware, ONGC,

15 34202

//what is wrong with the programme?? #include template class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<g; g.set(); g.print(); }

1 3753

what is an instance of a class

5 7091

What is a class?

Infosys, TCS, Thylak,

32 24084

What is an object?

HCL,

14 13713

What is the difference between an object and a class?

3 5959

What is the difference between class and structure?

7 9237

What is public, protected, private?

IBS, Satyam,

6 14683


Post New OOPS Questions

Un-Answered Questions { OOPS }

What is encapsulation with example?

570


Advantage and disadvantage of routing in telecom sector

780


What is oops?what is its use in software engineering?

550


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.

2566


What is polymorphism programming?

593






What are the benefits of polymorphism?

612


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

687


What is a superclass in oop?

662


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2747


What is a class and object?

589


What is basic concept of oop?

690


Objective The objective of this problem is to test the understanding of Object-Oriented Programming (OOP) concepts, in particular, on encapsulation. Problem Description Create a program for managing customer’s bank accounts. A bank customer can do the following operations: 1. Create a new bank account with an initial balance. 2. Deposit money into his/her account. 3. Withdraw money from his/her account. For this operation, you need to output “Transaction successful” if the intended amount of money can be withdrawn, otherwise output “Transaction unsuccessful” and no money will be withdrawn from his/her account. Input The input contains several operations and is terminated by “0”. The operations will be “Create name amount”, “Deposit name amount”, or “Withdraw name amount”, where name is the customer’s name and amount is an integer indicating the amount of money. There will be at most 100 bank accounts and they are all created on the first month when the bank is opening. You may assume that all account holders have unique names and the names consist of only a single word. Output The output contains the transaction result of withdrawal operations and the final balance of all customers after some withdrawal and deposit operations (same order as the input). Sample Input Create Billy 2500 Create Charlie 1000 Create John 100 Withdraw Charlie 500 Deposit John 899 Withdraw Charlie 1000 0

1692


what is the sylabus for priliminaries?

1677


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1973


What is the diamond problem in inheritance?

569