Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plz help Write a class called 'Animal' with one attribute noOflegs and two constructors with or without setting the values of noOfLegs. Create a subclass
plz help
Write a class called 'Animal' with one attribute noOflegs and two constructors with or without setting the values of noOfLegs. Create a subclass called 'Human' that has a constructor that sets the value to noOfLegs to 2. 2. What are different types of constant pointers? Give example of each with code. 3. Write a code to pass the function to another function. float area(float rad) { Return 3.14*rad rad; } 4. What is inline function? Write down some advantages and disadvantages. 5. Write a class called 'Date' that has three integer attributes day, month, year. It has a set Month function that throws an exception if the value is less than 1 and more than 12. Write the main function to test your codeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started