OOPS Interview Questions
Questions Answers Views Company eMail

what is inline function?

3 5196

for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)

2 3852

what is polymorpsim? what are its types?

8 9216

what is function overloading..?

4 4625

what is a binary overloading

2 5308

what is the difference between function template and template of function?explain with example.

2 18528

what is oppes

2 3944

I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe

1 6343

what is the difference between class to class type conversion and copy constructor ?

2 5209

Write 7 differences between "Public" function and "Private" function?

IBM, Wipro,

2 15614

what do you mean by static member variable?

2 5067

What is a unary operator?

5 6911

Conversion from a basic type to a class type may be achieved using______________

HCL,

5 20042

A file pointer always contains the __________ of the file

5 10300

difine hierarchical inheritance.

ASD Lab, TCS,

9 24834


Post New OOPS Questions

Un-Answered Questions { OOPS }

Can we create object of abstract class?

569


What is the example of polymorphism?

551


What is destructor give example?

594


What is constructor in oop?

576


What is the diamond problem in inheritance?

568






Why it is called runtime polymorphism?

571


Why do pointers exist?

651


Why multiple inheritance is not allowed?

578


What is the benefit of oop?

564


Whats oop mean?

582


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

1691


Why do we use oops?

585


What is basic concept of oop?

690


class type to basic type conversion

1831


What is class in oop with example?

608