What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does and I oop and sksksk mean?

863


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

1913


What is overriding in oop?

789


What is abstraction with example?

827


What are the components of marker interface?

801


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2984


What is object and class in oops?

782


What is debug class?what is trace class? What differences are between them? With examples.

1855


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1899


What is abstraction and encapsulation?

775


What is polymorphism what are the different types of polymorphism?

748


program for insertion ,deletion,sorting in double link list

2443


How long to learn object oriented programming?

817


What is difference between multiple inheritance and multilevel inheritance?

880


write a program that takes input in digits and display the result in words from 1 to 1000

2186