What is the output of the following program

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 6E
icon
Related questions
Question
What is the output of the following program
using System;
3 references
aclass CA
{
O references
public CA()
{
Console.Writeline("In CA Default");
O references
public CA(int a, int b, int c)
{
Console.Writeline("In CA Parameterized");
[}
4 references
aclass CB : CA
{
O references
public CB()
{
Console.Writeline("In CB Default");
1 reference
public CB(int a, int b, int c, int d)
{
Console.Writeline("In CB Parameterized");
O references
aclass Program
{
O references
static void Main(string[] args)
{
CB a = new CB(1, 2, 3, 4);
Console.ReadLinek);
In CA Default In CA Parameterised
In CA Default In CB Parameterized
In CA Default In CA Parameterized In CB Default In CB Parameterized
O In CA Default In CA Parameterized In CB Parameterized
Transcribed Image Text:What is the output of the following program using System; 3 references aclass CA { O references public CA() { Console.Writeline("In CA Default"); O references public CA(int a, int b, int c) { Console.Writeline("In CA Parameterized"); [} 4 references aclass CB : CA { O references public CB() { Console.Writeline("In CB Default"); 1 reference public CB(int a, int b, int c, int d) { Console.Writeline("In CB Parameterized"); O references aclass Program { O references static void Main(string[] args) { CB a = new CB(1, 2, 3, 4); Console.ReadLinek); In CA Default In CA Parameterised In CA Default In CB Parameterized In CA Default In CA Parameterized In CB Default In CB Parameterized O In CA Default In CA Parameterized In CB Parameterized
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Print statement
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT