Want to create interactive content? It’s easy in Genially!

Get started free

Object Oriented Concepts

Rasika Priyadarshini

Created on November 2, 2023

Object Oriented Concepts

Start designing with a free template

Discover more than 1500 professional designs like these:

Visual Presentation

Terrazzo Presentation

Colorful Presentation

Modular Structure Presentation

Chromatic Presentation

City Presentation

News Presentation

Transcript

OBJECT ORIENTED CONCEPTS

wow

Go!

Polymorphism

Polymorphism is a fundamental concept in object-oriented programming, and Python, as an object-oriented programming language, fully supports it. Polymorphism allows objects of different classes to be treated as objects of a common superclass. This concept promotes code reusability and flexibility. There are two main types of polymorphism in Python: compile-time (or static) polymorphism and runtime (or dynamic) polymorphism.

Polymorphism

Polymorphism යනු object-oriented programming වල මූලික සංකල්පයක් වන අතර Python, object-oriented programming language එකක් ලෙස එයට සම්පුර්ණයෙන් සහය දක්වයි. බහුරූපවාදය විවිධ පංතිවල වස්තූන් පොදු සුපිරි පන්තියක වස්තූන් ලෙස සැලකීමට ඉඩ සලසයි. මෙම සංකල්පය කේත නැවත භාවිතා කිරීමේ හැකියාව සහ නම්‍යශීලී බව ප්‍රවර්ධනය කරයි. Python හි බහුරූපතාවේ ප්‍රධාන වර්ග දෙකක් තිබේ: compile-time (හෝ static) polymorphism සහ runtime (or dynamic) polymorphism.

Generalization Generalization is a fundamental concept in the context of object- oriented programming and design, and it refers to the process of creating a more general or abstract base class from a set of more specific or concrete classes. This process allows you to identify common attributes and behaviors shared by multiple classes and abstract them into a common superclass.

සාමාන්‍යකරණය යනු වස්තුවේ සන්දර්භය තුළ මූලික සංකල්පයකි- දිශානුගත ක්‍රමලේඛනය සහ සැලසුම් කිරීම, එය ක්‍රියාවලියට යොමු කරයි තවත් කට්ටලයකින් වඩාත් සාමාන්‍ය හෝ වියුක්ත මූලික පන්තියක් නිර්මාණය කිරීම මෙම ක්රියාවලිය ඔබට හඳුනා ගැනීමට ඉඩ සලසයි බහු පන්ති විසින් බෙදාගත් පොදු ගුණාංග සහ හැසිරීම් සහ ඒවා පොදු සුපිරි පන්තියකට සාරාංශ කරන්න.