<prompt> Phapang lipakeng tsa litlelase tse abstract le interfacenan  <response>: Instruction in English: Differentiate between abstract classes and interface . Response in English: Abstract classes and interfaces are two primary methods in Java for the creation of a contract that imposes a certain behavior on implementing classes. While they are similar in principle, there are some key distinctions between the two.Abstract classes define an abstract form of an object, allowing subclasses to share common attributes and methods. They can have both abstract incomplete and non-abstract methods implemented methods. Abstract classes are designed to be inherited, allowing you to create objects that share common features and behaviors. In contrast, you cannot instantiate an abstract class directly; you must extend it and implement all its abstract methods first.On the other hand, an interface is a purely abstract data type containing only abstract methods, default methods, or static methods. It works as a contract that must be implemented by classes that claim to support the behavior specified by the interface. Interfaces cannot have instance non-static variables, and all declared methods are public by default. They are commonly used to achieve polymorphism, inheritance, and to decouple code in a flexible manner.So in summary, some key differences between abstract classes and interfaces are:- Abstract classes can have both implemented methods and abstract methods, while interfaces can only include abstract, default or static methods.- Abstract classes can have instance variables, while interfaces cannot.- Classes can implement as many interfaces as desired, but can only extend a single class abstract or not.- Interfaces can only contain public methods, while abstract classes can use any access modifiers.- Abstract classes are usually used for defining a common base for classes sharing similar features or behavior, while interfaces define a contract, allowing unrelated classes to implement a set of common behaviors. . Response in Sesotho: Lithuto tse ikhethileng le li-interface ke mekhoa e meli ea mantlha ho Java bakeng sa ho theha konteraka e fanang ka boitšoaro bo itseng mabapi le ho kenya tšebetsong lihlopha. Le hoja li tšoana ka molao-motheo, ho na le phapang ea bohlokoa pakeng tsa tse peli. Abstract classs e hlalosa mofuta o sa bonahaleng oa ntho, e lumellang li-subclass ho arolelana litšobotsi le mekhoa e tšoanang. Li ka ba le mekhoa e sa bonahaleng e sa phethahalang le mekhoa e sa bonahaleng mekhoa e kentsoeng. Litlelase tse sa bonahaleng li etselitsoe ho rua lefa, li u lumella ho etsa lintho tse arolelanang likarolo le boitšoaro bo tšoanang. Ka lehlakoreng le leng, u ke ke ua tiisa sehlopha sa abstract ka kotloloho; o tlameha ho e atolosa le ho kenya tsebetsong mekhoa eohle ea eona ea pele. Ka lehlakoreng le leng, sebopeho ke mofuta oa data o sa bonahaleng o nang le mekhoa e sa bonahaleng, mekhoa ea kamehla, kapa mekhoa e tsitsitseng. E sebetsa e le konteraka e tlamehang ho kengoa tsebetsong ke lihlopha tse ipolelang hore li tšehetsa boitšoaro bo boletsoeng ke sebopeho. Li-interface ha li khone ho ba le mefuta e fapaneng ea mohlala e seng static, me mekhoa eohle e phatlalalitsoeng ke ea sechaba ka ho sa feleng. Hangata li sebelisoa ho fihlela polymorphism, lefa, le ho kopanya khoutu ka mokhoa o tenyetsehang. Kahoo ka kakaretso, liphapang tse ling tsa bohlokoa lipakeng tsa litlelase tse sa bonahaleng le likhokahano ke tsena: - Lithuto tse hlakileng li ka ba le mekhoa e kentsoeng tsebetsong le mekhoa e sa bonahaleng, athe likhokahano li ka kenyelletsa mekhoa e sa bonahaleng, ea kamehla kapa e sa fetoheng. - Litlelase tse hlakileng li ka ba le mefuta e fapaneng ea mohlala, athe li-interface ha li khone. - Litlelase li ka kenya tšebetsong li-interfaces tse ngata kamoo li lakatsoang, empa li ka eketsa sehlopha se le seng feela tse sa bonahaleng kapa che. - Li-interface li ka ba le mekhoa ea sechaba feela, athe litlelase tse sa utloahaleng li ka sebelisa liphetoho life kapa life tsa phihlello. - Lithuto tsa thuto e akaretsang li sebelisoa hangata bakeng sa ho hlalosa motheo o tšoanang oa litlelase tse arolelanang likarolo kapa boitšoaro bo tšoanang, ha lihokelo li hlalosa konteraka, tse lumellang lihlopha tse sa amaneng ho kenya tšebetsong mekhoa e tloaelehileng. 