Question: Assignment #2 CPSC 1811 Part-II Inheritance: Implementing an Interface (42 marks) Irrational number is any real number that cannot expressed as a ratio of two

 Assignment #2 CPSC 1811 Part-II Inheritance: Implementing an Interface (42 marks)

Assignment #2 CPSC 1811 Part-II Inheritance: Implementing an Interface (42 marks) Irrational number is any real number that cannot expressed as a ratio of two whole numbers. The decimal expansion of an irrational number never repeats or ends. 1. BigDecimal Class (12 marks) BigDecimal class represents large floating-point numbers with high precision. Read the Java documentation of BigDecimal (see link BigDecimal). BigDecimal class can be used in Question 2 of this part. (a) What is the superclass of BigDecimal class? (2 marks) (b) What is the package of BigDecimal class? (2 marks) (c) Which interface the BigDecimal class implements? (2 marks) (d) How many instance variables the BigDecimal has? (2 marks) (e) How many class variables the BigDecimal has? (2 marks) (f) How many constructors the BigDecimal has? (2 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!