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

Can bst contain duplicates?

660


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

1749


What is purpose of inheritance?

636


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2023


What is byval and byref? What are differences between them?

1680






What polymorphism means?

611


How do you define a class in oop?

614


What is the difference between static polymorphism and dynamic polymorphism?

568


What is encapsulation in oop?

599


Can static class have constructor?

576


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

1997


Can abstract class have normal methods?

600


what's the basic's in dot net

1732


What is constructor in oop?

576


What is and I oop mean?

607