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
Write a macro for swapping integers
What is the advantage of oop over procedural language?
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)
What is ambiguity in c++
What is a scope operator and tell me its functionality?
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?.
Write an operator overloading program to write S3+=S2.
Can we have a private virtual method ?
What are main features of oop?
What is the difference between an object and a class?
What do you mean by overloading?
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...