-
Notifications
You must be signed in to change notification settings - Fork 1
/
SAPLabs.txt
61 lines (27 loc) · 872 Bytes
/
SAPLabs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Explain these ObjectOriented Programming concepts.
List aspects or properties, multiple answers possible.
Q: What is an Object? Instance of a class/struct
Q: What is a Class?
Q: Name a language which do/don't represent classes as objects at runtime.
Q: What Is Inheritance?
Q: What Is Delegation?
Q: What is an Abstract Class?
Q: What is a Pure Abstract Class?
Q: What is an Interface?
Q: What is a Functional Interface in Java?
Q: How can types be grouped in Java, C++ to minimize risk of name clashes?
Q: Describe the primitive data types in Java, C++.
C++ :
int, char, float, double
Short int, long int
int a = 2;
short b = a;
Java:
int, char, float, double, Integer,Character, Double
int a;
Integer a;
int a = 2;
short b = a; //
Integer a = 2
Short b = a.Intvalue();
Q: Describe the access modifiers in Java, C++.