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



What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / pushpa

class aclass : public superclass

Is This Answer Correct ?    33 Yes 0 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / mahreen

1) class aclass : public superclass

Is This Answer Correct ?    6 Yes 2 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / srikanth

class aclass inherit superclass

Is This Answer Correct ?    9 Yes 7 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / anusha

class aclass <-superclass

Is This Answer Correct ?    4 Yes 3 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / uuh

Obviously, it depends on which programming language is
being used.

Is This Answer Correct ?    2 Yes 2 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / amit

class aclass:public superclass (in c#,c++)
class aclass inherit superclass(in vb.net)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More OOPS Interview Questions

What is new keyword in oops?

0 Answers  


what are abstract classes and how they impliment , with example

2 Answers  


What is the different between Applet and Application?

2 Answers  


program for insertion ,deletion,sorting in double link list

0 Answers  


how to get the oracle certification? send me the answer

0 Answers   Oracle,






difine hierarchical inheritance.

9 Answers   ASD Lab, TCS,


why constructor cannt be declar virtually? why destructor cannt be overloaded?

2 Answers   Infosys,


What are the advantages of inheritance?

26 Answers   IBS, TCS,


What is encapsulation selenium?

0 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

0 Answers  


WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??

21 Answers   Biocon, MIT, NIIT,


what is opps?why it is use in programming language?

2 Answers   Wipro,


Categories