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 is the fundamental idea of oop?

638


What is balance factor?

586


write knight tour problem which is present in datastructure

2164


What is the highest level of cohesion?

578


How to hide the base class functionality in Inheritance?

636






Why do we need polymorphism in c#?

684


class type to basic type conversion

1835


Can we create object of abstract class?

576


What is polymorphism and why is it important?

558


Can enum be null?

585


What are constructors in oop?

588


Why is abstraction needed?

567


Can we have inheritance without polymorphism?

608


Can we define a class within the interface?

553


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6148