Question: This is the book https://cs444pnu1.files.wordpress.com/2014/02/concepts-of-programming-languages-10th-sebesta.pdf 1. What are the language design issues for abstract data types? (chapter 11, review questions, question 5) 2. Describe briefly

This is the book

https://cs444pnu1.files.wordpress.com/2014/02/concepts-of-programming-languages-10th-sebesta.pdf

1. What are the language design issues for abstract data types? (chapter 11, review questions, question 5)

 2. Describe briefly the seven (or eight) design issues used in chapter 12 for object-oriented languages. Explain each issue with two or three sentences. (chapter 12, review questions, question 9) 3. Answer the questions with regards to the following source code in java. class X { X( ) { System.out.println(" X constructor"); } } class Y extends X { Y( ) { System.out.println("Y constructor"); } } public class Z extends Y { public static void main(String[] args) { Z anObject = new Z(); } } What is output of the program? Explain how you reach your answer. 4. Answer the questions with regards to the following source code. class Vehicle { public: Vehicle(char* regnum) : myRegNum(strdup(regnum)){} //other definition here. virtual void Describe(void) { cout << "Unknown vehicle, registration " << myRegNum << endl; } protected: char* myRegNum; }; class Car : public Vehicle { public: Car(char* make, char* regnum): Vehicle(regnum), myMake( strdup(make) ) {} // other definition here. void Describe(void) { cout << "Car (" << myMake<< "), registration "<< myRegNum << endl; } protected: char* myMake; }; In the main method, we have the following statements. Vehicle* vp1 = new Car ("Jaguar","XJS 012"); Vehicle* vp2 = new Vehicle ("SGI 987"); Vehicle* vp3 = new Vehicle ("ABC 123"); vp1->Describe(); vp2->Describe(); vp3->Describe(); What is output of the program? Explain how you reach your answer. 

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 Databases Questions!