Multiple choice technology programming languages

C++

  1. class aclass : public superclass

  2. class aclass inherit superclass

  3. class aclass <-superclass

  4. None of the Above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In C++, public inheritance is declared using a colon followed by the 'public' keyword and the base class name. Option A shows the correct syntax: 'class aclass : public superclass'. Options B and C use incorrect syntax not valid in C++.