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();
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

Write a macro for swapping integers

5 Answers  


What is the advantage of oop over procedural language?

0 Answers  


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 Answers  


What is ambiguity in c++

4 Answers   Accenture, Mphasis,


What is a scope operator and tell me its functionality?

3 Answers   emc2,






Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 Answers  


Write an operator overloading program to write S3+=S2.

2 Answers  


Can we have a private virtual method ?

8 Answers   Ness Technologies,


What are main features of oop?

0 Answers  


What is the difference between an object and a class?

3 Answers  


What do you mean by overloading?

0 Answers  


What is the use of unnamed namespaces in OOPS? The only advantage I know is that they dont need the scope resolution operator while accessing them. I want to know some other advantages of unnamed namespaces...

2 Answers  


Categories