From b9901b67dd9133f2a69e97482e43f3fc9aeb773a Mon Sep 17 00:00:00 2001 From: vanshika sharma <55344033+vanshika23-wq@users.noreply.github.com> Date: Sun, 7 Jun 2026 22:51:39 +0530 Subject: [PATCH] Update interface notes for clarity on variables Clarified the nature of variables in interfaces and their initialization constraints. --- lectures/17-oop/notes/interface.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/17-oop/notes/interface.txt b/lectures/17-oop/notes/interface.txt index c1fe268ea..60230828f 100644 --- a/lectures/17-oop/notes/interface.txt +++ b/lectures/17-oop/notes/interface.txt @@ -5,7 +5,7 @@ Instead we have java interfaces. they have abstract functions (no body of functi Interface is like class but not completely. it is like an abstract class. By default functions are public and abstract in interface. -variables are final and static by default in interface. +variables are final and static by default in interface. as interfaces dont have a constructor if you define non final fields they need to be intialized which is not possible in interface hence interfaces have static final variables. Interfaces specify only what the class is doing, not how it is doing it. The problem with MULTIPLE INHERITANCE is that two classes may define different ways of doing the same thing,