What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answers were Sorted based on User's Feedback
Answer / uuh
Obviously, it depends on which programming language is
being used.
| Is This Answer Correct ? | 2 Yes | 2 No |
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
Can we have a private virtual method ?
Can we override main method?
What is abstraction example?
What is object in oop with example?
What is this interview room ? Is it a class or an object.
what is meant by files?
Write a program to demonstrate the use of 'Composition' in C++
Prepare me a program for the animation of train
Can we create object of abstract class?
what is polymorphism?