What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-06 19:57:02
Create a class named Employee with id, name, department as private data members. Assign these data member values through method named Employee Record. Make a method to display all the record and also create a Calculate Salary Method.
class Member{ String name; int age; String number; String address; int salary; public void printSalary(){ System.out.println(salary); } } class Employee extends Member{ String specialization; } class Manager extends Member{ Strin... Add solution -
C++ 2021-10-06 09:11:02
hybrid inheritance template
#include<iostream.h>#include<conio.h>int a,b,c,d,e; class A {protected:public:void getab() {cout<<"\n ENter a and b value:";cin>>a>>b; }}; class B:public A {protected:public:void getc() ... Add solution -
Javascript 2021-10-06 08:50:04
convert app function to class component react native
const App = () => ( <div> <p> test </p> </div> ); // to convert the above to a class component: class App extends Component { render() { return ( <div> <p> test <... Add solution -
C# 2021-10-05 03:15:02
c# system classes
// ----------------- LIST OF SOME SYSTEM CLASSES ---------------------// // ______Class StringBuilder______ // Creates an object that represents a mutable string of characters using System.Text; StringBuilder myText = new StringBuilder(); myText.Appen... Add solution -
C# 2021-10-04 09:40:03
what does static mean in c#
In C#, static means something which cannot be instantiated. You cannot create an object of a static class and cannot access static members using an object. C# classes, variables, methods, properties, operators, events, and constructors can be defined as s... Add solution
Best helpers
Ranking is empty