The document outlines theoretical concepts and practical programming tasks related to object-oriented programming, specifically focusing on inheritance, encapsulation, method overloading, interfaces, and abstraction in both C++ and Java. It includes definitions and examples for multiple inheritance, encapsulation, and method overloading, along with practical programming exercises such as printing even numbers, creating arrays, and calculating areas. The document serves as a guide for understanding and applying these programming concepts in C++ and Java.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views1 page
Imp External Practical
The document outlines theoretical concepts and practical programming tasks related to object-oriented programming, specifically focusing on inheritance, encapsulation, method overloading, interfaces, and abstraction in both C++ and Java. It includes definitions and examples for multiple inheritance, encapsulation, and method overloading, along with practical programming exercises such as printing even numbers, creating arrays, and calculating areas. The document serves as a guide for understanding and applying these programming concepts in C++ and Java.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Theory
1. Define inheritance. Give example of multiple inheritance with example in C++.
2. Define Encapsulation. Explain with programming example in C++. 3. Define inheritance. Give example of multiple inheritance with example in JAVA. 4. Define Encapsulation. Explain with programming example in JAVA. 5. Explain overloading method with programming example in java. 6. Write a program of single inheritance in java. 7. Explain interface in java with Example. 8. Explain Abstraction with proper example in java.
Practical
1. Write a program to print even number up to 10 using while loop in C++.
2. Write a program to create an array to store 5 integer values in C++. 3. Write a program to evaluate simple interest of a given principle, rate and time IN JAVA. 4. Write a program using the arithmetic operators to perform algebraic operations on Two numbers. (Algebraic operation is +, - , *, /, %) in JAVA. 5. Write a program to convert inches to centimetres in Java. 6. Write a program to calculate the area of square and rectangle by overloading the area method in java. 7. Write a java program to display powers of 2 i.e. 2,4,8,16 etc up to 1024 using bitwise operators. 8. Write a java program to calculate the hypotenuse of right angled triangle when other sides of the triangle are given. (Hypotenuse = square root(x*x + y*y)) 9. Write a java program to check whether the given number is even or odd. 10. Write a program to print even number up to 10 using while loop in java.