C++and JavaAssignement
C++and JavaAssignement
Explain each concept (explain benefits of oops & future of oops language) 2) Write short note on(1)Static Data members (2) static member function. (VIMP) 3) What is friend function? What is merits and demerits of friend function? Explain with example? 4) WAP to find how many objects of a class have been created using static member function. 5) What do you mean by Constructor ? explain in detail all type of constructors Assignment 2 1) Explain the concept of constructor and Destructor in C++ 2) What is Operator Overloading ? Explain rule for Overloading Operator ? give an example overloading unary operator? 3) WAP To overload "+ =" operator to add two distances given in feet and inches 4) Explain inheritance ?different types of inheritance in detail. What ambiguity is faced during multiple inheritance and how is it resolved ? 5) Explain Visibility of inherited member in inheritance. Assignemnent 3 1) What is abstract base class ? Explain with example 2) What is virtual base class? where &why it is used? give one program? 3) Explain with examples how is polymorphism achieved at compile time and run time 4) Write a Program to read the details about a student and display result using a friend function. The information to be read includes name address, age. Assignement 4 1 What do you understand by Byte-Code in java? 2 Explain the term with exam (i) Variable (ii) Constant (iii) Keyword (iv) Data Type 3) Explain logical operators and relational operators in java 4) Explain the following terms w.r.t class.
I Creating an object. IIConstructor III) Overloading methodsIV Garbage collection 5)What are the uses of super keyword in Inheritance? Assignment 5 1)What is class ? Explain inner class. 2 )Explain overriding method in detail. 3 ) Explain following terms. (i) this keyword (ii) finalize() method 4 ) Explain the following clause w.r.t exception handling. i) try ii) catch iii) throw 5 ) Describe setName() and setPriority() methods of thread class