What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answer Posted / pushpa
class aclass : public superclass
| Is This Answer Correct ? | 33 Yes | 0 No |
Post New Answer View All Answers
what is the sylabus for priliminaries?
Why do we use polymorphism in oops?
What is oops with example?
What are the two different types of polymorphism?
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.
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is the difference between a constructor and a destructor?
What is difference between pop and oop?
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?
What is abstraction in oop?
What is interface in oop?
What is polymorphism and why is it important?
What are classes oop?
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(); }
What does and I oop and sksksk mean?