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

Get me a number puzzle game-program

1694


Why polymorphism is used in oops?

585


write knight tour problem which is present in datastructure

2168


What is the difference between inheritance and polymorphism?

594


What is ambiguity in inheritance?

625






officer say me - i am offered to a smoking , then what can you say

1586


Can we create object of abstract class?

579


Templates mean

1592


How is class defined?

588


Can static class have constructor?

587


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

1991


What is an example of genetic polymorphism?

651


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.

700


What is the difference between static polymorphism and dynamic polymorphism?

587


i got a backdoor offer in process global,Bangalore..Can i work with it?

2328