What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answer Posted / uuh

Obviously, it depends on which programming language is
being used.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of polymorphism?

664


What is inheritance and how many types of inheritance?

607


How to use CMutex, CSemaphore in VC++ MFC

4320


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2023


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1399






Why interface is used?

547


How do you define a class in oop?

616


Whats oop mean?

582


What is the point of polymorphism?

578


What is difference between multiple inheritance and multilevel inheritance?

593


How to hide the base class functionality in Inheritance?

630


What is abstraction oop?

613


What is difference between data abstraction and encapsulation?

608


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?

2746


What does sksksk mean in text slang?

1511