HotelInfantesAgres - Tempat Tanya Jawab Pelajaran & Ilmu Pengetahuan Logo

In TI / Sekolah Menengah Atas | 2025-07-14

Manakah pernyataan yang paling tepat mengenai konsep abstraction dalam OOP?

Asked by mayaasarii7856

Answer (3)

Ok so if we call the width x then the length is 2x-7 Now by adding a 5 foot brick border around the edge the new dimensions are: x+10 and 2x+3 Now we can form an equation to solve: (x+10)(2x+3)=195 2x²+23x+30=195 2x²+23x-165=0 Now we can solve this for x (2x+33)(x-5)=0 So x=-33/2 or x=5 As x cannot be less than 0 x must be equal to 5 So the dimensions of the garden are 5 feet by 3 feet

Answered by AndyBryer | 2024-06-10

The dimensions of the garden without the brick border are 3 feet for the length and 5 feet for the width. The width was found to be 5 feet, leading us to find the length as 3 feet. Together, these make up the required dimensions of the garden.
;

Answered by AndyBryer | 2025-02-05

Jawaban:Abstraction dalam OOP adalah mekanisme untuk menyembunyikan detail implementasi dan menampilkan hanya fitur atau perilaku yang esensial dari suatu objek.Penjelasan:abstraction memungkinkan kita untuk fokus pada “apa” yang dilakukan sebuah objek, tanpa harus memperlihatkan “bagaimana” cara kerjanya. Abstract class (kelas abstrak) yang hanya mendeklarasikan method-method penting, Interface yang mendefinisikan kontrak perilaku tanpa detail implementasi, Access modifier (public, private, protected) untuk membatasi visibility atribut/metode.

Answered by aekmohop | 2025-07-15