What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answer Posted / anusha

class aclass <-superclass

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism what is it for and how is it used?

567


What is a class and object?

587


what is different between oops and c++

1992


Is this job good for future? can do this job post grduate student?

1680


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1631






Templates mean

1579


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2056


What is methods in oop?

531


What is the main purpose of inheritance law?

659


What is object and example?

593


Why is object oriented programming so hard?

605


what type of question are asked in thoughtworks pair programming round ?

1749


What is the difference between abstraction and polymorphism?

604


Are polymorphisms mutations?

687


Can a varargs method be overloaded?

611