0

Java doubt please help me in a concept because my teacher not help me 😭😭

Sir one doubt in java concept that interface mai main class bana sakta hu kya and interface mai function declare karke rakhte hai wo as a function prototype define hota hai ya like jaise function call ho raha hai interface A { void disp a(); } Ye abhi normal interface hai so ye function prototype hai method call ho raha hai

27th Jul 2022, 4:00 AM
Abhishek
Abhishek - avatar
3 Antworten
0
do you mean interface A { //void disp a(); void disp(); }
27th Jul 2022, 4:59 AM
zemiak
0
abhishek bairwa Interface me main class nahi bana sakte. Interface me sirf method (method prototype) and constant variable defined karte hain. Method ko use karne ke liye interface ko implement karna padta aur implemented class me method override hona chahiye kyonki ek class multiple interface ko implement kar sakta hai
27th Jul 2022, 6:13 AM
A͢J
A͢J - avatar
0
Dhanyawad sir
27th Jul 2022, 7:00 AM
Abhishek
Abhishek - avatar