What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answer Posted / srikanth
class aclass inherit superclass
Is This Answer Correct ? | 9 Yes | 7 No |
Post New Answer View All Answers
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is encapsulation example?
Why is polymorphism needed?
Why do we use class in oops?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What is object in oops?
What is a class and object?
What is coupling in oops?
hi all..i want to know oops concepts clearly can any1 explain??
What is abstraction in oop?
How do you explain polymorphism?
What is object and example?
Why do we use inheritance?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Why is polymorphism important in oop?